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:29:09 -0400
On Oct 31, 2009, at 12:25 PM, Richard Somers wrote:
On Oct 31, 2009, at 10:12 AM, Jim Correia wrote:
Typically you set up the baseline value in -awakeFromFetch.
Is there a specific reason you need this to be undoable?
When the managed object is removed, didTurnIntoFault is called and
the custom data caches are deleted. When the user does an undo on
this action the managed object is fetched but awakeFromFetch is
never called so the custom data caches are now missing.
On 10.5 and earlier, you’ll have to re-create your data caches in an
on-demand accessor.
On 10.6 and later you can use -awakeFromSnapshotEvents: to re-
establish them.
Ji
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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