Re: Getting mouse cursor position
Re: Getting mouse cursor position
- Subject: Re: Getting mouse cursor position
- From: Nathan Sims <email@hidden>
- Date: Fri, 06 May 2011 16:26:36 -0700
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 (email@hidden)
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:
This email sent to email@hidden