• 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: How does Core Data validate transient attributes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does Core Data validate transient attributes?


  • Subject: Re: How does Core Data validate transient attributes?
  • From: Richard Charles <email@hidden>
  • Date: Sun, 30 Mar 2014 06:27:27 -0600

Perhaps setNilValueForKey: from the NSKeyValueCoding protocol maybe useful. This method is called on modeled properties that are scalars or structures. Perhaps you need to explicitly set these values in awakeFromInsert and awakeFromFetch.

Richard

On Mar 30, 2014, at 3:54 AM, Rick Mann <email@hidden> wrote:

> I have custom CGRect and CGPoint attributes that are not optional. I'm getting validation errors that they aren't set. I back them with four and two doubles, respectively, which ARE optional.
>
> How does Core Data decide that a custom, transient, undefined attribute is or is not set?


_______________________________________________

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


  • Prev by Date: Re: SQLite Question
  • Next by Date: Re: Removing a file via NSFileWrapper
  • Previous by thread: Re: Removing object as observer in -willTurnIntoFault
  • Next by thread: Re: How does Core Data validate transient attributes?
  • Index(es):
    • Date
    • Thread