• 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: Opening NSDocument window in the background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Opening NSDocument window in the background (From: Philippe ROBIN <email@hidden>)

  • Prev by Date: Re: red black trees
  • Next by Date: Re: access to DOM from the WebKit
  • Previous by thread: Opening NSDocument window in the background
  • Next by thread: Re: cocoa-dev digest, Vol 2 #3727 - 15 msgs
  • Index(es):
    • Date
    • Thread