• 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: Bindings between nib files? <!solved>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings between nib files? <!solved>


  • Subject: Re: Bindings between nib files? <!solved>
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 2 May 2005 16:08:08 -0700


On May 2, 2005, at 1:37 PM, Michael Carter wrote:
Wow...okay. Just figured this out thanks to a great article from Scott
Stevenson on cocoadevcentral.com! so THAT'S what an NSObjectController
is! It's a bridge between the code in AppController.m and the bindings
system. That certainly clears up a lot. :)

Umm, no, it's not. An object controller is simply a controller that mediates between a single object and the user interface. There may be several reasons for using an object controller -- its content may be bound, and so dynamic (it will change as selection changes, for example); it allows you to make edits to an object and ensure changes are committed before the window closes, etc.



-File's Owner: NSWindowController (the ivar in AppController)
-Panel: the panel with the master-detail interface for employee objects
-EmployeeController: the NSArrayController that binds everything
So, when I run the panel, create/edit employees works fine. However, all
the employees I create/edit are being stored locally(?) in the panel?


Have you set the "Automatically prepares content" flag on the array controller?

mmalc


_______________________________________________ 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
References: 
 >Re: Bindings between nib files? <!solved> (From: Michael Carter <email@hidden>)

  • Prev by Date: Re: Cocoa Technologies Back-Story?
  • Next by Date: Re: Headless Cocoa/Java app - autorelease
  • Previous by thread: Re: Bindings between nib files? <!solved>
  • Next by thread: Application Design Guidelines
  • Index(es):
    • Date
    • Thread