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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to