On May 6, 2011, at 4:13 PM, Nick wrote:

> May this is just a wrong function to retrieve the cursor's position?
> Or it doesnt work for some older builds of OX X 10.6.x ?

Oh, I thought you were looking for the cursor's hotspot, not its location.

NSPoint pos = [NSEvent mouseLocation];
NSLog(@"Mouse is at: (%f,%f)", pos.x, pos.y);


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to