Cheers Craig...
I found a tutorial on pointers in Objective-C here. So I updated the code with the tweaks you mentioned, and it's compiling.
However it's giving me really strange negative values where 0 is reported when the mouse is moved near the top left corner.
Working Code At Bottom of Thread
Any more ideas? Thanks
Seb
You need to dereference the pointers (ie. *x,*y) because NSMakePoint expects plain ints (technically floats.)
I found a tutorial on pointers in Objective-C here. So I updated the code with the tweaks you mentioned, and it's compiling.
However it's giving me really strange negative values where 0 is reported when the mouse is moved near the top left corner.
Working Code At Bottom of Thread
Any more ideas? Thanks
Seb