Re: NSManagedObject validateForDelete problem
Re: NSManagedObject validateForDelete problem
- Subject: Re: NSManagedObject validateForDelete problem
- From: Ward Ruth <email@hidden>
- Date: Sat, 14 Mar 2009 00:36:58 -0700
Thanks for the feedbacks -- makes total sense to me now. Yeah, I was
under the mistaken impression NSManagedObject's -validateForDelete was
something that would work for me to call before actually attempting
the delete. After actually performing a delete and save (based on my
toy example) I see things behave and get deleted without errors as
expected.
I'll implement my own -isDeletable type methods on my managed objects
in order to check them before potentially erroneously deleting them
and having to present the user with a confusing message when they
attempt to save.
Thanks again,
Ward
_______________________________________________
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