Re: the first mouseDown message of NSWindow
Re: the first mouseDown message of NSWindow
- Subject: Re: the first mouseDown message of NSWindow
- From: Graham Cox <email@hidden>
- Date: Thu, 15 Dec 2011 10:51:20 +1100
On 15/12/2011, at 9:13 AM, Torsten Curdt wrote:
> I have a custom window that where I receive mouseDown messages.
You probably don't want to do that. A custom window is OK if your window needs a custom appearance, but any meaningful content (and event handling) should be done by a view placed within, even with a custom window.
With your content and event handling in a view, it becomes a simple case of returning YES from the view's acceptsFirstMouse: method, as I previously indicated.
--Graham
_______________________________________________
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