NSDocument and NSWindowController and Nib file wiring
NSDocument and NSWindowController and Nib file wiring
- Subject: NSDocument and NSWindowController and Nib file wiring
- From: David Hoerl <email@hidden>
- Date: Tue, 26 Apr 2005 22:18:55 -0400
I have a complex window with a NSTextView in it and a bunch of
widgets. Some of the widgets will have outlets connecting to a
NSDocument subclass, and some will connect to a NSWindowController
subclass.
What I' THINK I want to do is instantiate a NSWindowController
subclass item in the Nib file. If I set the File's Owner to have a
Customer Class of my NSDocument Subclass, then the NSDocument
subclass can just load the Nib and all the connections should be
pre-wired as per the NIB. [Using the File Owner as the proxy for my
NSDocument class].
But, from reading up on NSDocument and NSWindowController, it appears
that they are designed so that the NSDocument is the File Owner, and
the NSWindowController is created by the NSDocument. If I do this,
then I have to do all the wiring programmatically (not the end of the
world, but I have to keep the program in step with the changes and
additions to the Nib file).
Is there a way to do what I want (ie put the NSWindowController
subclass into the Nib file?)
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden