Re: Changing Services HotKey at Runtime
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