Re: Bindings between nib files? <!solved>
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