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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to