The Core Data model editor does not save minimal length settings as of Xcode 4.1

Originator:defagos
Number:rdar://10822141 Date Originated:07-Feb-2012
Status:Closed Resolved:
Product:Developer Tools Product Version:4.1
Classification:Severe bug Reproducible:Always
 
Summary:
As of Xcode 4.1, the Core Data model editor does not save the Min Length setting for attributes (Utilities panel). This setting is lost when the project is closed and reopened.

Steps to Reproduce:
Create a new iOS project using Core Data. Add a new entity to the model, and a string field (the problem also affects NSNumber fields). Open the Utilities panel, click on the attribute, and in the Validation section enter a min length or value. Save your project. Open it again, and check the value you have set: It has not been saved. 

Note that this bug does not affect the max length / value setting.

I created a sample project for this issue: Check out the workspace at git://github.com/defagos/radars.git, and open the xcdatamodel-xcode4 project. 

Expected Results:
The minimum length / value validation constraint of a Core Data model object attribute is saved.

Actual Results:
The minimum length / value validation constraint of a Core Data model object attribute is lost when the project is closed

Regression:
Since Xcode 4.1

Notes:
-

Comments

This bug has been fixed in Xcode 4.3


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!