• 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
Binding across different Nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Binding across different Nib
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: Converting from HTML
  • Next by Date: Re: Binding across different Nib
  • Previous by thread: Re: WebView crashes with JavaScript enabled
  • Next by thread: Re: Binding across different Nib
  • Index(es):
    • Date
    • Thread