• 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
Validation error after setting the value of a boolean attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Validation error after setting the value of a boolean attribute


  • Subject: Validation error after setting the value of a boolean attribute
  • From: Lynn Barton <email@hidden>
  • Date: Tue, 16 Feb 2010 14:35:04 -0800

Why does my Core Data app give me a validation error message, when quitting the app, if the following code is used? I am importing some legacy data to set 5 string attributes of an object, but using this code to set the one BOOL attribute. In my model, myBooleanAttribute has a default value of NO, and the legacy data does not include this attribute, so I can avoid the validation error by omitting the following code, but I would like to know why it causes errors.

[myNewObject setMyBooleanAttribute: NO];
_______________________________________________

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

  • Follow-Ups:
    • Re: Validation error after setting the value of a boolean attribute
      • From: Steven Degutis <email@hidden>
  • Prev by Date: Re: Perform additional action when window receives any mouse- or keyDown
  • Next by Date: Re: Validation error after setting the value of a boolean attribute
  • Previous by thread: Re: Preventing system sleep
  • Next by thread: Re: Validation error after setting the value of a boolean attribute
  • Index(es):
    • Date
    • Thread