Database Reference
In-Depth Information
An attribute's data type determines what kind of data you can store in it and how
much space it will occupy on disk. In Core Data, an attribute's data type begins as
Undefined so you'll have to change it to something else.
If you remember from SampleData.plist , each bow tie has eight associated pieces
of information. This means the Bowtie entity will end up with at least eight
attributes in the model editor.
Select Bowtie on the left-hand side and click the plus sign (+) under Attributes .
Change the new attribute's name to name and set its type to String :
Repeat this process five more times to add the following attributes:
A Boolean named isFavorite ;
A Date named lastWorn ;
A Double named rating ;
A String named searchKey ;
An Integer 32 named timesWorn .
When you're finished, your Attributes section should look like this:
 
Search WWH ::




Custom Search