• 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: Toggle between Alternate Menus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Toggle between Alternate Menus
      • From: Scott Stevenson <email@hidden>
References: 
 >Toggle between Alternate Menus (From: Georg Tuparev <email@hidden>)
 >Re: Toggle between Alternate Menus (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Re: NSImage gets distorted when scrolled
  • Next by Date: Re: displaying window on activation
  • Previous by thread: Re: Toggle between Alternate Menus
  • Next by thread: Re: Toggle between Alternate Menus
  • Index(es):
    • Date
    • Thread