Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Nov 15, 2012

Example, execution from a build phase script

mogenerator \
    -m "${modelPath}.xcdatamodeld/${modelVersion}" \
    --template-var arc=true \
    --includeh ${outDir}/${modelName}Model.h \
    --base-class GVCManagedObject \
    --base-class-import "<GVCCoreData/GVCCoreData.h>" \
    --machine-dir $outMachineDir \
    --human-dir $outDir

The model includes hierarchy like

Type
+--- SimpleType
+--- ComplexType

Type inherits from GVCManagedObject, which is in the GVCCoreData framework (static lib), but SimpleType and ComplexType need to import Type.h This patch fixes the issue where the subclasses did not import the super entity when it is local to the project.

rentzsch added a commit that referenced this pull request Jan 14, 2013
Small defect fixed for when the base class is from an external library and a model has inheritance
@rentzsch rentzsch merged commit 21465eb into rentzsch:master Jan 14, 2013
ddrccw pushed a commit to ddrccw/mogenerator that referenced this pull request Jan 20, 2014
Small defect fixed for when the base class is from an external library and a model has inheritance
@rentzsch rentzsch removed the new label Aug 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant