Hi,

I use the ShortcutRecorder framework in order to let the user define a shortcut 
for a given action.

The ShortcutRecorder framework saves the shortcut into the preference plist in 
the following form:

keyCode: 18
modifiers: 256
(for CMD +1)


Now I would like to use this information from the plist to display the shortcut 
in a NSMenuItem.

- (id)initWithTitle:(NSString *)itemName action:(SEL)anAction 
keyEquivalent:(NSString *)charCode


Now how can I transform the information I have to the NSString the NSMenuItem 
accepts and displays?


thanks!_______________________________________________

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 arch...@mail-archive.com

Reply via email to