Thanks for that Michael - I'd missed that.

        I think what I'll do is what you suggest: exclude the subwindows then 
add them myself in the correct order and see if that works. I have to modify 
their titles anyway.


On 20/08/2010, at 4:23 AM, Michael Dautermann wrote:

> 
> On Aug 18, 2010, at 5:56 PM, Peter Zegelin wrote:
> 
>> My app allows the user to create a number of sub windows for each document.
> 
> 
>> 
>> I would prefer the layout to be more like Xcode where the sub windows of a 
>> project are added below the main document entry and indented:
>> 
>> <Window Menu>
>> MyDoc
>>  SubWindow 1
>>  SubWindow 2
>> MyDoc2
>>  SubWindow 1
>>  SubWindow 2
>> 
>> Is it OK to extensively modify this menu? I am mainly concerned that since 
>> it is automatically populated it is going to get quite complicated to do it 
>> properly.
>> Any hints/ code etc. gratefully accepted.
> 
> Hello Peter,
> 
> I found this mention of the Window menu in the reference documentation:
> 
> <http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/WinPanel/Tasks/UsingWindowsMenu.html#//apple_ref/doc/uid/20000231-SW1>
> 
> It sounds like you can manually mess with the Windows menu by setting 
> setExcludedFromWindowsMenu:YES on each window you control and then manually 
> adding/deleting items for the windows via [[NSApplication sharedApplication] 
> addWindowsItem:title:filename: ] or [[NSApplication sharedApplication ] 
> removeWindowsItem:].  
> 
> hth.... 
> 
> 
> 

kind regards,

Peter Zegelin
http://www.fracturedsoftware.com
Rondo - MIDI for your mac
MacSimAVR - AVR microcontroller simulator for OS X

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to