Re: Key presses in NSView
Re: Key presses in NSView
- Subject: Re: Key presses in NSView
- From: Jens Alfke <email@hidden>
- Date: Thu, 04 Oct 2012 15:35:18 -0700
On Oct 4, 2012, at 3:17 PM, Gordon Apple <email@hidden> wrote:
> This is essentially the DragMouseBoxView (simple subclass of NSView) from
> the AVScreenShack sample. It is set to acceptFirstResponder and
> acceptFirstMouseClick.
You may need to override -canBecomeKeyWindow in your window to return YES — if it doesn’t have a regular title bar (NSBorderlessWindowMask) it won’t become key by default.
—Jens
_______________________________________________
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