Re: Calling processPendingChanges from awakeFromInsert
Re: Calling processPendingChanges from awakeFromInsert
- Subject: Re: Calling processPendingChanges from awakeFromInsert
- From: mmalc crawford <email@hidden>
- Date: Thu, 20 Sep 2007 17:01:59 -0700
On Sep 20, 2007, at 2:07 PM, Michael Burns wrote:
This is an NSPersistentDocument based application. Every time a new
document is created, an entity called a "Project" is created which
stores all sorts of global data relevant to that document. The
awakeFromInsert from below is for another NSManagedObject
("WBObject") which is created through cocoa bindings as I explained.
First, it's not immediately clear why you can't use the pattern shown
in the Persistent Document Tutorial -- unless the user has to perform
the button click? In which case, it seems it would be easier to
manage control of creation of new objects from the controller (as
ever, just because you're using bindings doesn't mean you don't have
to write code and can't subclass... <http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSObjectController_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObjectController/newObject
>).
mmalc
_______________________________________________
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