• 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: No mouseExited when switching windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No mouseExited when switching windows


  • Subject: Re: No mouseExited when switching windows
  • From: Steve Mills <email@hidden>
  • Date: Wed, 20 Feb 2013 10:21:31 -0600

On Feb 20, 2013, at 10:02:37, Kyle Sluder <email@hidden>
 wrote:

> On Feb 20, 2013, at 7:55 AM, Steve Mills <email@hidden> wrote:
>
>> At this point, I should hilite that same area with the "hover" image. Yet I can't because the only thing I can think of doing the "right" way would be to receive a NSWindowDidBecomeKeyNotification notification. But this doesn't give me the current mouse location. I could ask NSEvent for its global mouse location, but that doesn't sound very Cocoa-y.
>
> Why not? It's the best information you have on hand.

Because with proper Cocoa event, you're given everything you need rather than having to get it via brute force (get global point, convert to window coords, and convert to view coords). I was hoping someone might point out something that would do it the right way that I'm not aware of. If not, I'll go with brute force.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157




_______________________________________________

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

  • Follow-Ups:
    • Re: No mouseExited when switching windows
      • From: Kyle Sluder <email@hidden>
References: 
 >No mouseExited when switching windows (From: Steve Mills <email@hidden>)
 >Re: No mouseExited when switching windows (From: Fritz Anderson <email@hidden>)
 >Re: No mouseExited when switching windows (From: Steve Mills <email@hidden>)
 >Re: No mouseExited when switching windows (From: Shane Stanley <email@hidden>)
 >Re: No mouseExited when switching windows (From: Steve Mills <email@hidden>)
 >Re: No mouseExited when switching windows (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: No mouseExited when switching windows
  • Next by Date: LLVM 4.2 bug: crash on 10.6.8 in loop iteration
  • Previous by thread: Re: No mouseExited when switching windows
  • Next by thread: Re: No mouseExited when switching windows
  • Index(es):
    • Date
    • Thread