FROM : Bertrand Landry Hetu
DATE : Wed Apr 20 12:47:12 2005
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/bertrand%
> 40landryhetu.com
>
> This email sent to <email_removed>
>
DATE : Wed Apr 20 12:47:12 2005
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/bertrand%
> 40landryhetu.com
>
> This email sent to <email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| Martin Redington | Apr 20, 04:54 | |
| Bertrand Landry He… | Apr 20, 12:47 |






Cocoa mail archive

