• 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: Paul Ferguson <email@hidden>
  • Date: Sun, 11 Aug 2002 21:17:50 -0700

On Sunday, August 11, 2002, at 07:57 PM, Daryn wrote:
Well, that's odd... The straightforward way would be to message NSToolbar'
s window for the currentEvent, but the window appears to be a private ivar with no accessor. Either break the rules and message it anyway, or use the following:

[[NSApplication sharedApplication] currentEvent]

This works like a charm, thanks for the help. Since neither NSToolbar or NSToolbarItem are NSResponders, I wasn't sure how to get at this, but never thought to use NSApp. (I was never very good at current events in school...)
_______________________________________________
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.
References: 
 >Re: NSToolbarItem actions and modifier keys (From: Daryn <email@hidden>)

  • Prev by Date: Re: NSView initWithFrame called twice
  • Next by Date: unicode chars in button title?
  • Previous by thread: Re: NSToolbarItem actions and modifier keys
  • Next by thread: A Short DO Problem
  • Index(es):
    • Date
    • Thread