Changing Services HotKey at Runtime

  • 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/Conce
    pts/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
    --
  • 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/Conce
    pts/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
  • 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/Conce
    pts/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).
previous month november 2008 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today
MindNode
MindNode offered a free license !