• 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
How to copy Apple's in-column keyboard shortcut editor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to copy Apple's in-column keyboard shortcut editor?


  • Subject: How to copy Apple's in-column keyboard shortcut editor?
  • From: Daniel Jalkut <email@hidden>
  • Date: Wed, 31 Dec 2003 20:09:15 -0800

Does anybody have any hints before I spend a lot of time trying to copy Apple's keyboard shortcut editing functionality (witness the Keyboard Shortcuts pane in Keyboard pref pane, or the Keyboard bindings pane in Xcode preferences).

I know there is some difficulty in "getting the raw key events" before they are interpreted by NSApplication's sendEvent method. I would just dive right into overriding sendEvent, except I am hoping there is a cleaner way to do it.

I'm intrigued by the possibility of implementing "performKeyEquivalent:" on one of my classes, but as far as I can tell I need a responder or view in order to get my hooks into that. I want to mimic Apple's "in the outline view" format, so as far as I know I only get an NSCell to work with, not a full-fledged view (unless I subclass the outline view entire).

Ideally, I guess I'd hope to make a subclass of NSTextFieldCell that can somehow "be edited" in a way that mimics Apple behavior. Do I have to go through hoops to intercept and re-broadcast raw events from sendEvent, or is there some existing hook that will help me out?

Thanks for any tips...

Daniel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: People who develop with MySQL and/or other GPL based code
  • Next by Date: Re: People who develop with MySQL and/or other GPL based code
  • Previous by thread: Re: how to convert *.lproj directory to localized language name?
  • Next by thread: NSLayoutManagers and NSTypesetters and NSGlyphGenerators, oh my!
  • Index(es):
    • Date
    • Thread