Keeping closed windows in the Window menu

2010-01-18 Thread Andreas Eriksson
Hi, What's the recommended way of keeping a window in the Window menu (like e.g. Address book and iChat does) so that it can be brought back even after it has been closed? / Andreas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Keeping closed windows in the Window menu

2010-01-18 Thread Steve Christensen
Just a guess that they're known windows, so items are added to the Window menu in IB. On Jan 18, 2010, at 11:23 AM, Andreas Eriksson wrote: What's the recommended way of keeping a window in the Window menu (like e.g. Address book and iChat does) so that it can be brought back even after it

Re: Keeping closed windows in the Window menu

2010-01-18 Thread Steve Christensen
- [NSWindow setExcludedFromWindowsMenu:]? On Jan 18, 2010, at 11:58 AM, Andreas Eriksson wrote: That would still require some effort to prevent the window (and the separator) to be listed twice, I assume? On Mon, Jan 18, 2010 at 8:38 PM, Steve Christensen puns...@mac.com wrote: Just a

Re: Keeping closed windows in the Window menu

2010-01-18 Thread Quincey Morris
On Jan 18, 2010, at 11:23, Andreas Eriksson wrote: What's the recommended way of keeping a window in the Window menu (like e.g. Address book and iChat does) so that it can be brought back even after it has been closed? Here's the code (in the window controller) I use to do this: - (void)

Re: Keeping closed windows in the Window menu

2010-01-18 Thread Andreas Eriksson
On Mon, Jan 18, 2010 at 10:04 PM, Quincey Morris quinceymor...@earthlink.net wrote: On Jan 18, 2010, at 11:23, Andreas Eriksson wrote: What's the recommended way of keeping a window in the Window menu (like e.g. Address book and iChat does) so that it can be brought back even after it has

Re: Keeping closed windows in the Window menu

2010-01-18 Thread Quincey Morris
On Jan 18, 2010, at 13:18, Andreas Eriksson wrote: Why is it necessary to delay the orderOutMyWindow invocation with performSelector? I actually don't remember. Maybe it's not necessary, so by all means try it without the delay. ___ Cocoa-dev