• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting mouse loc in flagsChanges method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting mouse loc in flagsChanges method


  • Subject: Re: Getting mouse loc in flagsChanges method
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 24 Jan 2013 14:49:04 -0800

On Thu, Jan 24, 2013, at 02:12 PM, Jens Alfke wrote:
>
> On Jan 24, 2013, at 2:03 PM, Steve Mills <email@hidden> 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@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

References: 
 >Getting mouse loc in flagsChanges method (From: Steve Mills <email@hidden>)
 >Re: Getting mouse loc in flagsChanges method (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Getting mouse loc in flagsChanges method
  • Next by Date: Re: Coordinate conversions in CALayer
  • Previous by thread: Re: Getting mouse loc in flagsChanges method
  • Next by thread: Re: Getting mouse loc in flagsChanges method
  • Index(es):
    • Date
    • Thread