• 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: Get all available shortcuts/hotkeys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get all available shortcuts/hotkeys


  • Subject: Re: Get all available shortcuts/hotkeys
  • From: Martin Wierschin <email@hidden>
  • Date: Thu, 1 Apr 2010 14:49:50 -0700

I have been trying to figure out a way to get all the available shortcuts from an application without luck.

Anyone have any pointers on how to get that information at runtime?

For your own application this isn't too hard. Just start with -[NSApp mainMenu] and recursively visit all submenus, checking their keyEquivalents. You should message each menu's delegate for those that are dynamically populated.


As for scanning other applications, I imagine you'd need to look into AppleScript or the Accessibility APIs, neither of which I know enough about to offer any advice.

~Martin

_______________________________________________

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


References: 
 >Get all available shortcuts/hotkeys (From: Jorge Luis Mendez <email@hidden>)

  • Prev by Date: NSArrayController selectedObjects
  • Next by Date: Re: NSArrayController selectedObjects
  • Previous by thread: Get all available shortcuts/hotkeys
  • Next by thread: User interface like iPhone home screen......
  • Index(es):
    • Date
    • Thread