Perhaps this is not the correct list, so maybe someone can direct me to an appropriate list for my question.
I have made, using XCode 3.2.5 and the invaluable help of Shane Stanley's AppleScriptOBJC Explored 4.0.0.pdf, a rather simple application which consists of buttons and labels. Each button is connected to an AppleScript handler which sends commands to QuickTime and TextWrangler to edit captions. Each button also has a key equivalent, so the job of matching the dialog to the transcript can be done mostly by touching buttons on the keyboard.
It all works very well. Now, I wish to add the option key. I have noticed that some applications modify labels and menu items when I press the option key. I would like to do that with my simple app.
For example, I have a button named "Nudge timecode", with the key "N" equivalent, and the nearby label "-250ms". When I press the option key, I would like my handler to change the label to "+250ms".
My question is: How does Cocoa (or Interface Builder) make available the information that I have pressed the option key?
I have scanned the Cocoa documentation associated with XCode, but I'm evidently not using the right search terms.
I would appreciate your suggestion as to where to go look for the answer.
--Gil |