1. Click an entity (Customer or Product) in the data model editor and then choose File | New File option. We get a dialog box to choose the template for the new file.
2. Select Cocoa Touch Class from under the iPhone OS heading in the left pane and select Managed Object Class template. We get a dialog box that prompts for the location of generating managed object class. Keeping the location as the default select the Next button.
3. Check the Customer and the Product entity in the dialog box that appears (as shown in the following screenshot). We find two checkboxes that are already checked: Generate accessors and Generate Obj-C 2.0 Properties. Keeping the two checkboxes checked, select the Finish button.
We will find four files:
Customer.h, Customer.m, Product.h, and