Re: Core Data Managed Object with Custom Data Caches
Re: Core Data Managed Object with Custom Data Caches
- Subject: Re: Core Data Managed Object with Custom Data Caches
- From: Jim Correia <email@hidden>
- Date: Sat, 31 Oct 2009 12:12:18 -0400
On Sat, Oct 31, 2009 at 12:05 PM, Richard Somers
<email@hidden> wrote:
> The documentation states didTurnIntoFault "method may be used to clear out
> custom data caches". So far so good.
>
> I was creating custom data caches in awakeFromFetch (or awakeFromInsert)
> until I realized that awakeFromFetch does not participate in undo. The
> documentation confirms that "change processing is explicitly disabled
> around this method".
>
> So Apple provides a way to remove custom data caches associated with a
> managed object but no way to create them.
Typically you set up the baseline value in -awakeFromFetch.
Is there a specific reason you need this to be undoable?
Jim
_______________________________________________
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