You can't return structs to BitzMax as your declaration is expecting a pointer to a blitzmax type not an actual instance of a raw NSPoint.
You can't return a pointer to the NSPoint because it has been allocated on the stack.
I would pass an int pointer to the function and write the result there.
You can't return a pointer to the NSPoint because it has been allocated on the stack.
I would pass an int pointer to the function and write the result there.