tags:

views:

26

answers:

1

Hey, I'm trying to move a sprite to the mouse click location. How can i get it's coordinates?

Thanks!

+2  A: 

Assuming you are in an event responder method (e.g. mouseDown:):

[myView convertPointFromBase:[NSEvent mouseLocation]];

Barry Wark