• 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: detecting an option-click on a button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: detecting an option-click on a button


  • Subject: Re: detecting an option-click on a button
  • From: Graham Cox <email@hidden>
  • Date: Fri, 31 Oct 2008 10:27:15 +1100


On 31 Oct 2008, at 8:51 am, Paul Archibald wrote:

but of course the currentEvent is not necessarily related to the sender


I think you'll find it is. Only one event is handled per event loop, and when the action method is called it's synchronous with that loop. Thus the current event will be the click that caused the action to get sent.

--Graham
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >detecting an option-click on a button (From: Paul Archibald <email@hidden>)

  • Prev by Date: Re: Need help programatically wiring up an NSTreeController to an NSOutlineView
  • Next by Date: Horizontal Stepper
  • Previous by thread: detecting an option-click on a button
  • Next by thread: Re: detecting an option-click on a button
  • Index(es):
    • Date
    • Thread