Re: Window menu a la PB
Re: Window menu a la PB
- Subject: Re: Window menu a la PB
- From: Bryan Blackburn <email@hidden>
- Date: Mon, 2 Jun 2003 18:09:17 -0600
- Mail-followup-to: email@hidden
What I've done, and seems to work well, is to register for
NSMenuDidAddItemNotification from [ NSApp windowsMenu ]. When the
menu updates, I remove those entries which need to be moved, in one loop,
then add them back in a second.
I've done this in my CiphSafe app:
http://www.withay.com/macosx/ciphsafe.html
where source if available if you want to see the exact code used.
Bryan
On Jun 2, 2003 11:30, Carl Norum stated:
>
Hi everyone!
>
>
I have a question about the window menu. My application has multiple
>
windows for each document (potentially a lot of them). I'd like to
>
have the window menu behave the way project builder's does - the
>
primary window for the document is grouped with the secondary windows,
>
and the secondary windows are indented slightly.
>
>
Is there a good way to go about this, or do I just have to catch window
>
opening/closing notifications and use NSApp's setWindowsMenu and
>
windowsMenu methods?
>
>
Thanks!
>
>
--
>
Carl J Norum
>
5th Year Electrical Engineering/Computer Science Student
>
University of Saskatchewan
>
Saskatoon, Canada
>
>
http://norum.homeunix.net/~carl/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.