Re: Toggle between Alternate Menus
Re: Toggle between Alternate Menus
- Subject: Re: Toggle between Alternate Menus
- From: Georg Tuparev <email@hidden>
- Date: Sun, 3 Oct 2004 11:54:40 +0300
On Oct 3, 2004, at 12:07 AM, Scott Stevenson wrote:
On Oct 2, 2004, at 12:31 PM, Georg Tuparev wrote:
Please tell me that I am completely blind, and google is not working!
How can one toggle between alternate Menu Items (set in IB)?
Not sure what you mean. Press whatever key sequence you set the
alternate menu item to.
If this doesn't answer your question, please be more specific.
here is what I did:
1. Created 2 menus (Hide Bla and Show Bla) - no key equivalents, only
Show bla has an extra key modifier. [As expected, when the app runs,
only Hide Bla is visible and enabled]
2. Added a toggleBlaShow: to the first responder, and set it as an
action to both menu items.
3. Implemented toggleBlaShow somewhere in the responder chain (probably
here I must add some magic - the question is what).
Nothing happens if I select the Show Bla with mouse, but exactly the
same works if I connect the menus to the NSWindow's toggleToolbarShow:
Assigning key-equivalents has no effect too.
feeling extremely stupid and puzzled... and google is still not helpful
- even after having a good sleep.
-- georg --
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden