Re: No mouseExited when switching windows
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