Re: Opening NSDocument window in the background
Re: Opening NSDocument window in the background
- Subject: Re: Opening NSDocument window in the background
- From: John Randolph <email@hidden>
- Date: Tue, 24 Feb 2004 22:00:01 -0800
On Feb 23, 2004, at 4:31 AM, Philippe ROBIN wrote:
Hi,
At the moment I am using NSDocumentController
-openUntitledDocumentOfType: display:
to open a new document in my app.
However I would sometimes like the document window to open behind all
other windows rather than in front.
What could I do?
In your document .nib file, turn off the "visible at launch time"
option for the document window. Then, in your NSDocument subclass's
-windowControllerDidLoadNib: method, place the window as you like with
-orderBack: or -orderWindow:relativeTo:.
HTH,
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.