I need to know which NSString values i can use for key equivalents.
I can't find out what to use for
See Button Programming Topics: Setting a Button’s Key Equivalent:
https://developer.apple.com/library/mac/documentation/cocoa/conceptual/Button/Tasks/SettingButtonKeyEquiv.html
For a single character:
[button setKeyEquivalent:@"\r"];
For a non-print character:
unichar left = NSLeftArrowFunctionKey;
[button setKeyEquivalent:[NSString stringWithCharacters:&left length:1]];
Buttons and menu items use the same APIs for key equivalents.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With