• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data Xcode 4 question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Xcode 4 question


  • Subject: Re: Core Data Xcode 4 question
  • From: Steve Steinitz <email@hidden>
  • Date: Fri, 02 Sep 2011 13:19:58 +1000

Hi Andrew,

I get this mailing list in digest form so hope I'm not too late to chime in with what a wonderful tool
Jonathan “Wolf” Rentzsch has given to us and has continued to maintain over the years.  I never did use the Xcode plugin and so am used to the command line interface.

Install mogenerator and stash away two terminal commands somewhere for easy access.  Here, for example are my two commands:

cd /Volumes/.../POS/   # the directory containing your model package

mogenerator -m /Volumes/.../POS/Main.xcdatamodeld/Main\ 32.xcdatamodel --output-dir /Volumes/.../POS --template-path /Volumes/...MOGenerator/templates -baseClass DTManagedObject

The only thing I have to change every time is the model version (the "32" above).  Perhaps some bright spark has worked out a way to avoid that.  Also, my commands and my project directory structure have evolved over the years and looking at it freshly, the target directory is probably redundantly specified.

I remember making a template selection at some point in the past to tell mogenerator to use a user-contributed template which facilitated overriding model attribute methods (I think, loosely, that the template tells mogenerator not to define the model attributes as Objective-C 2.0 properties).  I can't remember details of how to set the template.

All the best,

Steve_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Core Data Xcode 4 question
      • From: Andrew Kinnie <email@hidden>
  • Prev by Date: Re: determine whether an ancillary program/task can run
  • Next by Date: Re: Large over 100K pixel high ruler scroll view
  • Previous by thread: Re: Core Data Xcode 4 question
  • Next by thread: Re: Core Data Xcode 4 question
  • Index(es):
    • Date
    • Thread