mogenerator custom template
- add
<$managedObjectClassName$>Object : NSObject {}
Generator NSManagedObject & NSObject Model:
@interface _GizmooModel : NSManagedObject {}
@property (nonatomic, strong) NSDate* beginDate;
@end
@interface _GizmooModelObject : NSObject {}
@property (nonatomic, strong) NSDate* beginDate;
@end
Setting mogenerator --template-path
options.
--template-path /path/to/mogenerator-templates/
e.g)
mogenerator \
--model $PROJECT_DIR/Model.xcdatamodeld/Model.xcdatamodel \
--output-dir $PROJECT_DIR/App/Models/ \
--template-path /path/to/mogenerator-templates/ \
--template-var arc=true
See also
- documentation - How do the Mogenerator parameters work, which can I send via Xcode? - Stack Overflow
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT