• 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
Keyboard NSEvents and a NSObjectController?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keyboard NSEvents and a NSObjectController?


  • Subject: Keyboard NSEvents and a NSObjectController?
  • From: Robert Monaghan <email@hidden>
  • Date: Wed, 05 Oct 2011 17:28:04 -0700

Hi Everyone,

It seems to me that there isn't an easy way to do this..

I have a bunch of Objects that are in an NSArrayController. My UI is bound to an NSObjectController which is then set to work with one of these objects (in the ArrayController). The user essentially selects one of the objects in the ArrayController using a TableView. This is pretty straight forward stuff.

The wrinkle happens when I want to add non-standard keyboard short cuts. For example, I want the user to use a space bar to start and stop a "play" process on my object. I would want to use other keys to modify the object, too.

What is the best way to pass these Keyboard events through an NSObjectController to my target object? Am I just going to have to write a boat load of spaghetti code to these events directly to the objects in question?

Suggestions appreciated!

bob.

_______________________________________________

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: Keyboard NSEvents and a NSObjectController?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Years-old mysterious bindings crash
  • Next by Date: Re: Keyboard NSEvents and a NSObjectController?
  • Previous by thread: Core Image Capture: ICScanner and brightness/contrast adjustments.
  • Next by thread: Re: Keyboard NSEvents and a NSObjectController?
  • Index(es):
    • Date
    • Thread