• 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
NSDocument-oriented app and -keydown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocument-oriented app and -keydown


  • Subject: NSDocument-oriented app and -keydown
  • From: Nick <email@hidden>
  • Date: Thu, 29 Sep 2011 17:42:03 +0300

how can I get a keydown (and keyup) events in an NSDocument-oriented
application for a particular document's window?
I'd like to get a control activated/deactivated on the window, depending on
whether the specific key is pressed or released.

I have found this:
http://stackoverflow.com/questions/1526512/nsdocument-and-keyboard-like-keydown

the answer that worked there was to use Carbon Shortcuts, but this does not
let (as i understand) attach the event to the particular window-document, it
is application wide.
How can I receive such an event in an NSDocument's subclass?

Thank you!
_______________________________________________

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: NSDocument-oriented app and -keydown
      • From: Richard Somers <email@hidden>
    • Re: NSDocument-oriented app and -keydown
      • From: Jerry Krinock <email@hidden>
    • Re: NSDocument-oriented app and -keydown
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Selecting UIButtons with code
  • Next by Date: Re: NSDocument-oriented app and -keydown
  • Previous by thread: Re: Selecting UIButtons with code
  • Next by thread: Re: NSDocument-oriented app and -keydown
  • Index(es):
    • Date
    • Thread