On Thu, Jan 24, 2013, at 02:12 PM, Jens Alfke wrote:
> 
> On Jan 24, 2013, at 2:03 PM, Steve Mills <[email protected]> wrote:
> 
> > The docs says that [NSEvent locationInWindow] is undefined for this method. 
> > I need to change the cursor when certain modifiers are pressed or released 
> > (hand, zoom, etc) and the mouse is inside my view subclass. Any ideas?
> 
> Keep track of the most recent mouse position seen by your cursor handling
> code, and reuse that position in the logic for computing the cursor when
> the keyboard flags change.

Or set up a tracking area and keep a boolean flag of wether the mouse is
inside that tracking area.

Or ask your containing window for the
-mouseLocationOutsideOfEventStream.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to