• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to use the option key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use the option key


  • Subject: How to use the option key
  • From: Gil Dawson <email@hidden>
  • Date: Tue, 06 May 2014 12:53:03 -0700

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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to use the option key
      • From: Avery Pierce <email@hidden>
  • Prev by Date: Re: Building a framework within an app's project
  • Next by Date: Re: How to use the option key
  • Previous by thread: Re: Building a framework within an app's project
  • Next by thread: Re: How to use the option key
  • Index(es):
    • Date
    • Thread