Reputation: 1871
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
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
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
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