iosdevnyc
iosdevnyc

Reputation: 1871

Xcode 4.2 requires first letter as lowercase for Core Data Attributes

Does anyone know why Xcode 4.2 is requiring an attribute name to start with a lowercase letter in core data model? Will there be any issue going forward?

Upvotes: 5

Views: 1535

Answers (3)

Grant Kennell
Grant Kennell

Reputation: 1

If you go into the terminal and find the xcdatamodel/contents and edit it (I used vi) you can find the name you have and change it.

Upvotes: 0

Brain2000
Brain2000

Reputation: 4894

While you should generally follow the recommended naming convention, if you need to get around this, you can enter a beginning uppercase character in the "Name" attribute of the "Data Model Inspector" (the inspector is in the right hand pane). Where the Core Data attribute editor will not allow you to enter something uppercase as the first character, the inspector will allow it.

Upvotes: 2

Marcus S. Zarra
Marcus S. Zarra

Reputation: 46718

It has always been this way because Objective-C standard naming conventions recommend a lower case first letter for iVars, properties, etc. Core Data is just enforcing that recommendation.

Upvotes: 2

Related Questions