Re: Inactive Window Receives Mouse Events
Re: Inactive Window Receives Mouse Events
- Subject: Re: Inactive Window Receives Mouse Events
- From: Kyle Sluder <email@hidden>
- Date: Fri, 10 Sep 2010 23:53:35 -0700
On Sep 10, 2010, at 10:50 PM, Richard Somers <email@hidden> wrote:
> I have a custom view where this behavior is undesirable. How can I disable this view from receiving mouse events when the window is inactive and the user uses the command key with the mouse?
You want -acceptsFirstMouse:.
http://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#//apple_ref/occ/instm/NSView/acceptsFirstMouse:
--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