Re: mouseMoved events and unfocused views
Re: mouseMoved events and unfocused views
- Subject: Re: mouseMoved events and unfocused views
- From: Markus Spoettl <email@hidden>
- Date: Wed, 20 Aug 2008 10:15:43 -0700
On Aug 20, 2008, at 10:01 AM, Ruotger Skupin wrote:
is there a way to get mouseMoved events in a view without it being
the focused view (and without getting the focus, of course)?
Yes, have a look at the tracking area options (tracking areas are new
in 10.5)
http://developer.apple.com/documentation/Cocoa/Reference/NSTrackingArea_class/Reference/Reference.html#/
/apple_ref/c/tag/NSTrackingAreaOptions
more specifically NSTrackingActiveWhenFirstResponder,
NSTrackingActiveInKeyWindow, NSTrackingActiveInActiveApp and
NSTrackingActiveAlways.
Not sure how to accomplish this on previous OS versions.
Regards
Markus
--
__________________________________________
Markus Spoettl
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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