views:

2682

answers:

4

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?

A: 

I found the answer in this post: Other post

Picflight
A: 

Also, have a look at this blog post for extremely easy automatic generation of the classes.

Vincent Driessen
+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:

alt text

  • 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
A: 

Hi guys,

How would you do what Mads did in XCode 4 ?

Cocoa student