Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings between nib files? <!solved>




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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Bindings between nib files? <!solved> (From: Michael Carter <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.