I'm attempting to use NSManagedObject validateForDelete in order to
provide timely feedback to delete actions by users. But the
relationship delete rules don't seem to be getting applied as I would
expect.

-validateForDelete: is intended as a potential delegate hook for subclasses of NSManagedObject. It's designed to be called from within -save: to perform any customized validation you might need on deleted objects.

It's not intended to double as -canDelete or -isDeleteable. It will produce something vaguely to that effect if you call - processPendingChanges first, although that's not its purpose.

- Ben



_______________________________________________

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