>
>    1. User removes the managed object from the existing document (using
> array controller), presses the close window button, changes are not saved.

    2. Managed object is removed from the managed object context by the
> frameworks and is no longer reachable by any means that I am aware of.
>


You should eliminate the dependency to the graphics context.

As a quick fix, you could add -delete method in your managed object class,
and make it remove itself from the context. When user removes an object,
invoke the -delete method, and you have an opportunity to do your cleanup.

/Dado
_______________________________________________

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