• 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: Unexpected Window Menu Behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unexpected Window Menu Behavior


  • Subject: Re: Unexpected Window Menu Behavior
  • From: Bertrand Landry Hetu <email@hidden>
  • Date: Wed, 20 Apr 2005 03:47:12 -0700


try [[self window] setExcludedFromWindowsMenu: YES];

On 2005/04/19, at 19:54, Martin Redington wrote:



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:
40landryhetu.com


This email sent to email@hidden


_______________________________________________ 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
References: 
 >Unexpected Window Menu Behavior (From: Martin Redington <email@hidden>)

  • Prev by Date: LSMinimumVersion, 10.4 string and 10.3.9 OS
  • Next by Date: Re: LSMinimumVersion, 10.4 string and 10.3.9 OS
  • Previous by thread: Unexpected Window Menu Behavior
  • Next by thread: Open with menu
  • Index(es):
    • Date
    • Thread