Unexpected Window Menu Behavior
Unexpected Window Menu Behavior
- Subject: Unexpected Window Menu Behavior
- From: Martin Redington <email@hidden>
- Date: Wed, 20 Apr 2005 03:54:40 +0100
I'm having some strange problems with the Window menu.
I would like my app to have window menu behaviour like iTunes.
My Window menu in Interface Builder looks something like this:
Minimize
Zoom
--------
Client Window
Server Window
--------
Bring All to Front
I would like the "Client Window" and "Server Window" items to remain
permanently in the list, so that the user can use them to activate the
specified windows (see iTunes for similar behaviour). These items are
connected to makeKeyAndOrderFront for the relevant windows.
My understanding of the window menu is that when a window's title is
set, a new item will be added to the Window menu, unless there is
already a menu item with the same name.
What happens for me is that the app starts with the Client Window open.
I get an additional separator and a second Client Window menu item in
the Window menu. However, the first (original) "Client Window" item
gets the tick mark.
Minimize
Zoom
--------
[tick] Client Window
Server Window
--------
Bring All to Front
--------
Client Window
When I close the window, my original Client Window item is removed, but
the new additional Client Window item remains.
Minimize
Zoom
--------
Server Window
--------
Bring All to Front
--------
Client Window
I get a similar problem with the Server Window menu item.
Is there anyway to get the desired behaviour with standard Menu kit, or
do I have to write custom code to get the window menu to behave as
desired?
_______________________________________________
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