On Feb 20, 2013, at 10:02:37, Kyle Sluder <k...@ksluder.com>
 wrote:

> On Feb 20, 2013, at 7:55 AM, Steve Mills <smi...@makemusic.com> 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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to