-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xmo'd is not creating files based on the current model version #37
Comments
More investigation has discovered the following. If you add "xmod" to the comments of the model (ie, select the model in the groups & files browser, not the individual model versions below) this does not appear to autogenerate. If you select the model in the groups and files and then select the specific model version file in the details view, and add xmod to that comment, then that version will be generated. This doesn't sound like this is how it should work ? |
That's how it works, by design :-) I require the xmod comment tag on a specific version to eliminate ambiguity. It would be nice if you could just have the xmod comment on the model group instead of a individual model and rely on the "current version", but IIRC the AppleScript for that is painful/impossible. Patches welcome if you want to pursue that feature. |
Ok, now I know ! |
This adds support for auto-latest-version detection: #46 |
--- This pull request allows to put `xmod` tag on a versionned model *(.xcdatamodel**d**)* Script then will automatically detect current version and call `mogenerator` on it. This modification is non intrusive and not breaking existing behavior. This is a popular request related to several issues : rentzsch#7, rentzsch#14, rentzsch#37 Thanks to nvie who this is largely inspired from : nvie/mogenerator@575584320a03f8738f9e1c42f6e05f865f8aeb5a
--- This pull request allows to put `xmod` tag on a versionned model *(.xcdatamodel**d**)* Script then will automatically detect current version and call `mogenerator` on it. This modification is non intrusive and not breaking existing behavior. This is a popular request related to several issues : rentzsch#7, rentzsch#14, rentzsch#37 Thanks to nvie who this is largely inspired from : nvie/mogenerator@575584320a03f8738f9e1c42f6e05f865f8aeb5a
I have just added a new model version, and set it as current.
When I make changes I get no updates happening on the generated files.
If I make changes to the old model version and save them, I do get changes in the generated files.
I looks like it is tracking the wrong model version - it's odd as it is tracking version 3, and now I'm on 4, so it's not like its always following the first version.
The text was updated successfully, but these errors were encountered: