• 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: Changing Services HotKey at Runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing Services HotKey at Runtime


  • Subject: Re: Changing Services HotKey at Runtime
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 19 Nov 2008 23:13:37 +0100


Le 19 nov. 08 à 22:30, Peter Ammon a écrit :


On Nov 19, 2008, at 4:49 AM, Xavier Snark wrote:

Greetings,

In my application I would like to change the Services Hotkey combination at runtime. So far, the only Apple documentation that I have found states that the hotkey is configured via the Info.plist file in the application bundle.

http://developer.apple.com/documentation/Cocoa/Conceptual/SysServices/Concepts/properties.html

Changing the application bundle at runtime will violate code-sign.

I've been told my responses to a previous question that I should be setting user configurable data in defaults. That's fine, (I'm already using it for other user-configurable parameters), but I can't find any information that discusses how to use defaults as a means to configure Services parameters. Can anyone direct me to documentation for this?

X

Users can use the keyboard pref pane to change the key equivalent for any menu item. There's no programmatic access to it however.


-Peter

This technic has some drawback. It's system locale dependend. That's not important when you want to change one specific App menu item, but for a service, it may appear with a different label depending the front application language (which append frequently on non English system, for example when you use Xcode).


_______________________________________________

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: 
 >Changing Services HotKey at Runtime (From: Xavier Snark <email@hidden>)
 >Re: Changing Services HotKey at Runtime (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: Outlets / IBOutlet declarations (was Re: Interface Builder &Wiring Objects)
  • Next by Date: Re: Question about NSThread?
  • Previous by thread: Re: Changing Services HotKey at Runtime
  • Next by thread: placing a window in the top left corner
  • Index(es):
    • Date
    • Thread