• 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: (Leopard) Core Data validateForDelete problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (Leopard) Core Data validateForDelete problem


  • Subject: Re: (Leopard) Core Data validateForDelete problem
  • From: Thomas Dingler <email@hidden>
  • Date: Fri, 2 Nov 2007 07:46:51 +0100

I see that it will not be possible so save a context with a reference to a deleted object. But I selected the default "Nullify" rule. So no references should be there when deleting an object.
Should this not be recognized by the validation system when I call validateForDelete:?


When performing directly deleteObject: it will work. (But if I override validateForDelete to perform own validation and call super in there => validation error from the super method call).

So my question: How to validate for deny rules/nullify rules before deleting an object?

Thomas

Am 02.11.2007 um 07:09 schrieb mmalc crawford:


On Nov 1, 2007, at 11:01 PM, Thomas Dingler wrote:

I'm not able to delete relationships when delete rule is "Nullify". Performing "validateForDelete" fails for each relationship. It comes up with a validation error under Leopard. Under Tiger it works as aspected.

<http://developer.apple.com/releasenotes/Cocoa/CoreDataReleaseNotes/ index.html#//apple_ref/doc/uid/TP40006503-DontLinkElementID_11>

mmalc


_______________________________________________

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: 
 >(Leopard) Core Data validateForDelete problem (From: Thomas Dingler <email@hidden>)
 >Re: (Leopard) Core Data validateForDelete problem (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: CALayer vs Layer Backed Views
  • Next by Date: Re: @properties and Information Hiding
  • Previous by thread: Re: (Leopard) Core Data validateForDelete problem
  • Next by thread: Re: (Leopard) SOLVED: Core Data validateForDelete problem
  • Index(es):
    • Date
    • Thread