• 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
Re: (Newb) Multiple NSWindowControllers and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (Newb) Multiple NSWindowControllers and bindings


  • Subject: Re: (Newb) Multiple NSWindowControllers and bindings
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 16 Sep 2008 10:18:32 -0700

On Sep 16, 2008, at 09:49, John Velman wrote:

... And in a NIB (or
XIB), the NSWindowController is the File's Owner, and is the main "View
Controller" (as well as the window controller, of course.)

"View controller" in an informal sense, perhaps, but this isn't really good terminology. A NSWindowController is not, of course, a NSViewController, though the two classes have roughly parallel purposes.


How do I get the path for displaying an array (or any data) from the model
into IB?


...

So far, all I've been able to figure out is to give the NSWindowController
pointers to the model objects managed by MyDocument. (In a binding
compliant way with 'setModel', and 'model' for accessors).

Assuming you use the standard NSDocument methods for creating multiple NSWindowControllers and attaching them to the document, your window controllers will automatically have a valid "document" property, so you can use 'File's Owner.document.model'.



_______________________________________________

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: (Newb) Multiple NSWindowControllers and bindings
      • From: John Velman <email@hidden>
References: 
 >(Newb) Multiple NSWindowControllers and bindings (From: John Velman <email@hidden>)

  • Prev by Date: Re: structs in Mutable containers
  • Next by Date: Re: structs in Mutable containers
  • Previous by thread: (Newb) Multiple NSWindowControllers and bindings
  • Next by thread: Re: (Newb) Multiple NSWindowControllers and bindings
  • Index(es):
    • Date
    • Thread