I have created my Model, Entities, Properties and Relationships in Xcode. How are the classes for my Entities created? Do I have to manually create them?
views:
2682answers:
4
A:
Also, have a look at this blog post for extremely easy automatic generation of the classes.
Vincent Driessen
2009-08-01 07:05:41
+9
A:
You can do this without leaving Xcode at all:
- Open your data model so it's visible in the editor pane
- Single click Classes folder in Group & Pane pane
- Now single click anywhere in the diagram pane.
- Press ⌘N to bring up this dialog:
- Finish the wizard to genereate code for one or more classes. Note: you select the classes for which to generate on a later step in the wizard - not shown here.
I picked this up on page 143 of More iPhone 3 Development
Mads Mobæk
2010-03-04 13:01:48