• 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
NSDocument and NSWindowController and Nib file wiring
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: "VMWare" for the Mac - running OSX on OSX
  • Next by Date: Accepting All Drops
  • Previous by thread: Re: "VMWare" for the Mac - running OSX on OSX
  • Next by thread: Accepting All Drops
  • Index(es):
    • Date
    • Thread