Re: CoreData and undo/redo : how to add a managed object with attributes already set in the undo/redo stack ?
Re: CoreData and undo/redo : how to add a managed object with attributes already set in the undo/redo stack ?
- Subject: Re: CoreData and undo/redo : how to add a managed object with attributes already set in the undo/redo stack ?
- From: Jerry Krinock <email@hidden>
- Date: Thu, 1 Jul 2010 10:03:26 -0700
On 2010 Jun 29, at 13:47, Sean McBride wrote:
> I don't believe that's the right pattern. In awakeFromInsert/Fetch, one
> should be using primitive setters. The docs say "..."
You're correct, Sean. I thought I got that pattern from some Apple sample code, but I can't find it now.
Use of primitive setters in -awakeFromInsert seems less kludgey, and is also demonstrated in "NSPersistentDocument Core Data Tutorial", Chapter 3.
_______________________________________________
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