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

Re: Modifying the Window Menu


  • Subject: Re: Modifying the Window Menu
  • From: Peter Zegelin <email@hidden>
  • Date: Sat, 21 Aug 2010 13:34:54 +1000

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 (email@hidden)

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:

This email sent to email@hidden

References: 
 >Modifying the Window Menu (From: Peter Zegelin <email@hidden>)
 >Re: Modifying the Window Menu (From: Michael Dautermann <email@hidden>)

  • Prev by Date: iOS Core Data property getting released unexpectedly
  • Next by Date: Re: iOS Core Data property getting released unexpectedly
  • Previous by thread: Re: Modifying the Window Menu
  • Next by thread: CGEvent with double click
  • Index(es):
    • Date
    • Thread