You need to dereference the pointers (ie. *x,*y) because NSMakePoint expects plain ints (technically floats.)
Since you want to return pointer ints you will need to assign them the address of returnPoint.x,y items.
You should remove :Point from your functions because they don't return a Point.
You should be able to achieve the same stuff through Carbon/C++ if you'd prefer.
Since you want to return pointer ints you will need to assign them the address of returnPoint.x,y items.
You should remove :Point from your functions because they don't return a Point.
You should be able to achieve the same stuff through Carbon/C++ if you'd prefer.