Re: Changing the menu bar
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.