Re: NSToolbarItem actions and modifier keys
Re: NSToolbarItem actions and modifier keys
- Subject: Re: NSToolbarItem actions and modifier keys
- From: Paul Ferguson <email@hidden>
- Date: Sun, 11 Aug 2002 19:37:53 -0700
On Sunday, August 11, 2002, at 02:42 PM, j o a r wrote:
If you need to know _after_ the click, check out the documentation for
NSEvent: "currentEvent" and "modifierFlags".
Action methods for toolbar items do not receive the event that triggered
it. If there is some way to get the event I know what to look for, but I
don't see any way to do that, hence my question.
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.
That doesn't help either, for the same reason. In my case, I don't need to
know beforehand, but could see that it might be useful in some situation.
_______________________________________________
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.