If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I've created a NSMenuItem programatically and I need to set the key modifiers on it. I understand that if I put keyEquivalent:@"A" it will equal command + a. But how do I work with shift etc? Any example code is appreciated.
No, keyEquivalent:@"a" will equal command + a. keyEquivalent:@"A" will equal command-shift-A. It's all spelled out in the NSMenuItem documentation. Look at setKeyEquivalent:.