• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSManagedObject validateForDelete problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSManagedObject validateForDelete problem


  • Subject: Re: NSManagedObject validateForDelete problem
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 13 Mar 2009 13:42:03 -0700


On 2009 Mar 13, at 01:44, Ben Trumbull wrote:

-validateForDelete: is ... not intended to double as -canDelete or - isDeleteable.

When I first started using Core Data I had the mistaken impression that the various -[NSManagedObject validateXXXX] methods were hooks into which I could place my validation code or "business logic", and things would "just work". But after playing with it for awhile, all I was able to get was sheets dropping over my document windows when I tried to save, saying stuff like "The document could not be saved. Multiple validation errors occurred."


I didn't think my users would appreciate those sheets any more than I did :O So, instead I do all my validation and model adjustments elsewhere, in custom setters or in response to notifications.

I don't believe that the -[NSManagedObject validateXXXX] methods have much use to the application programmer.

_______________________________________________

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


References: 
 >re: NSManagedObject validateForDelete problem (From: Ben Trumbull <email@hidden>)

  • Prev by Date: Re: Handling errors in -initWithCoder:
  • Next by Date: iPhone color management?
  • Previous by thread: re: NSManagedObject validateForDelete problem
  • Next by thread: Re: NSManagedObject validateForDelete problem
  • Index(es):
    • Date
    • Thread