• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Key presses in NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Key presses in NSView
      • From: Gordon Apple <email@hidden>
References: 
 >Key presses in NSView (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: Suggestions for handling old document files with file paths in a sandbox environment
  • Next by Date: Re: Key presses in NSView
  • Previous by thread: Key presses in NSView
  • Next by thread: Re: Key presses in NSView
  • Index(es):
    • Date
    • Thread