• 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: multiple window per document problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple window per document problems


  • Subject: Re: multiple window per document problems
  • From: mmalcolm crawford <email@hidden>
  • Date: Sun, 6 Jun 2004 04:18:03 -0700

On Jun 6, 2004, at 4:04 AM, m wrote:

I have a "main" window for my document and several secondary windows. The main window is created and managed as usual (it comes from the documents nib file). The secondary windows are handled in a method of my NSDocument subclass like this:

"NSDocument subclasses must also create their window controllers. They can do this indirectly or directly. If a document has only one nib file (with one window in it), the subclass can override windowNibName to return the name of the window nib file; as a consequence, a default NSWindowController instance is created for the document, with the document as the nib files owner. If a document has multiple windows, or if an instance of a custom NSWindowController subclass is to be used, the NSDocument subclass must override makeWindowControllers to create these objects."

<http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/ Tasks/SubclassNSDocument.html>

First try managing all the window controllers through 'makeWindowControllers'.

mmalc
_______________________________________________
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: 
 >multiple window per document problems (From: m <email@hidden>)

  • Prev by Date: multiple window per document problems
  • Next by Date: Re: Is that really a bug at all? (was: Re: Ugly bug in Foundation, beware!)
  • Previous by thread: multiple window per document problems
  • Next by thread: Re: multiple window per document problems
  • Index(es):
    • Date
    • Thread