You followed the instructions inRecipe 15.1 and you want to know how to create code based on your object model.
Follow these steps:
In Xcode, find the file with the xcdatamodel extension that was created for your application when you created the application itself in Xcode. Click on the file, and you should see the editor on the righthand side of the Xcode window.
Select the Person entity that we created earlier (see Recipe 15.1).
Select File → New File in Xcode.
In the New File dialog, make sure you have selected iOS as the
main category and Core Data as the subcategory. Then choose the
NSManagedObject subclass item
from the righthand side of the dialog and press Next, as shown in
Figure 15-11. Creating a managed object subclass in Xcode
Now choose where to save your files in your project and press Create, as shown in Figure 15-12.
Figure 15-12. Selecting the destination folder for the managed object
Now you will see two new files in your project, called Person.h and Person.m. Open the contents of the Person.h file. It will look like the following: