Skip navigation.
 
mlRe: Toggle between Alternate Menus
FROM : Georg Tuparev
DATE : Sun Oct 03 10:54:40 2004

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 --

Related mailsAuthorDate
mlToggle between Alternate Menus Georg Tuparev Oct 2, 21:31
mlRe: Toggle between Alternate Menus Scott Stevenson Oct 2, 23:07
mlRe: Toggle between Alternate Menus Georg Tuparev Oct 3, 10:54
mlRe: Toggle between Alternate Menus Scott Stevenson Oct 4, 08:15