• 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: Changing the menu bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the menu bar


  • Subject: Re: Changing the menu bar
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 4 Apr 2002 13:05:25 +0200

On Thursday, April 4, 2002, at 04:54 , Chris Backas wrote:

I've been wondering, how do I go about changing the top most menu bar based on which window in my application is focused? I have several different windows within my application with varying purposes, and one
menu bar doesn't fit all. But, the menu "MainMenu" in my "MainMenu.nib"
seems to be a special case. How is this normally handled?

It is just not done. Disable/enable some items, but don't add/remove any (but for menus which have a really dynamic contents like Window or like the TextExtras' "User Pipes").

Technically what you want is possible (you can catch when a window became the first responder, and you can change menu using those NSMenu services), but it makes an *EXTREMELY* poor GUI, since the user never knows what's there and what is not.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.
  • Follow-Ups:
    • DO Crashing on received object
      • From: Rosyna <email@hidden>
    • Re(2): Changing the menu bar
      • From: Jens Bauer <email@hidden>
    • Re: Changing the menu bar
      • From: Sam Goldman <email@hidden>
References: 
 >Changing the menu bar (From: Chris Backas <email@hidden>)

  • Prev by Date: Re: More re: Carbon Events vs Cocoa Events
  • Next by Date: Re: tableview data retrieval
  • Previous by thread: Changing the menu bar
  • Next by thread: Re: Changing the menu bar
  • Index(es):
    • Date
    • Thread