• 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: NSToolbarItem actions and modifier keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSToolbarItem actions and modifier keys


  • Subject: Re: NSToolbarItem actions and modifier keys
  • From: j o a r <email@hidden>
  • Date: Sun, 11 Aug 2002 23:42:55 +0200

If you need to know _after_ the click, check out the documentation for NSEvent: "currentEvent" and "modifierFlags".

If you need to know _before_ the click, subclass NSApplication and check all key events in "sendEvent:" for modifier keys, and change the state of the toolbar item accordingly.

j o a r

On Sunday, Aug 11, 2002, at 19:30 Europe/Stockholm, Paul Ferguson wrote:

Is there a way within an NSToolbarItem's action method to determine whether a modifier key (such as Option) was pressed when the toolbar icon was clicked?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSToolbarItem actions and modifier keys
      • From: Paul Ferguson <email@hidden>
References: 
 >NSToolbarItem actions and modifier keys (From: Paul Ferguson <email@hidden>)

  • Prev by Date: Re: Appending text to a file
  • Next by Date: Re: Appending text to a file
  • Previous by thread: Re: NSToolbarItem actions and modifier keys
  • Next by thread: Re: NSToolbarItem actions and modifier keys
  • Index(es):
    • Date
    • Thread