• 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
Re: Modifier keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modifier keys


  • Subject: Re: Modifier keys
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 14 Nov 2001 17:49:13 +0100

Dan,

>>>>>> Dan Huntsinger (DH) wrote at Tue, 13 Nov 2001 23:00:35 -0800:
DH> My question is this: I have a button that I would like to perform one
DH> action when pressed, and another different action when pressed in
DH> combination with the Option key. For example, increment a text field
DH> value when pressed, but decrement the value when option-pressed.

Connect the button to an action, and check the modifier bits of the
currentEvent inside that action. AFAIK there is no way to do that directly in
IB (unless you write your own palette, which would contain basically the
aforementioned code, for that).
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc


References: 
 >Modifier keys (From: Dan Huntsinger <email@hidden>)

  • Prev by Date: Re: NSWorkspaceDidLaunchApplicationNotification
  • Next by Date: Re: Graph out of data
  • Previous by thread: Modifier keys
  • Next by thread: Re: Modifier keys
  • Index(es):
    • Date
    • Thread