re: NSManagedObject validateForDelete problem
re: NSManagedObject validateForDelete problem
- Subject: re: NSManagedObject validateForDelete problem
- From: Ben Trumbull <email@hidden>
- Date: Fri, 13 Mar 2009 01:44:47 -0700
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 (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