Getting mouse cursor position
Getting mouse cursor position
- Subject: Getting mouse cursor position
- From: Jim McGowan <email@hidden>
- Date: Sat, 07 May 2011 12:11:38 +0100
On 7 May 2011, at 0:29 , Nick <email@hidden> 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 ?
-hotSpot returns a point within in the cursor image, used to determine which part of the cursor is it's 'main point'. From the docs:
"The point describing the position of the hot spot, specified according to the cursor’s flipped coordinate system."
If you want to get the onscreen position look at -[NSWindow mouseLocationOutsideOfEventStream] or +[NSEvent mouseLocation]
Jim_______________________________________________
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