Re: multiple window per document problems
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.