Validation error after setting the value of a boolean attribute
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