Binding across different Nib
Binding across different Nib
- Subject: Binding across different Nib
- From: "gMail.com" <email@hidden>
- Date: Sun, 19 Oct 2008 23:21:09 +0200
- Thread-topic: Binding across different Nib
Hi,
I have recently discovered the bind features and I have found it's a great
technology. It really saves a lot of time. I have added a NSObjectController
to the xib file, connected it to MYClass and my test worked well.
Now I have a MyDocument.xib file containing the controller and the window of
my document. And I have a different MainMenu.xib file containing the
Inspector window and InspectorObject and the inspectorController. I wouldn't
put the Inspector window in the MyDocument xib file because I should have
only one Inspector window and several documents windows open.
So now, how to connect the NSObjectController to the active document?
Actually I have put the inspectorController in the MainMenu.xib, and coded
[inspectorController setContent:self];
in the windowControllerDidLoadNib in my MyDocument class. When I create a
new document, it works. But I really need to put this statement in something
like "onActivateDocument" method.
Any idea?
And should I really put the inspectorController in the MainMenu.xib file or
in the MyDocument.xib file?
Thank you
--
LL
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden