1

I have several existing XML schema files with a defined data model. I would now like to incorporate the exact data model in an iPhone app, using Core Data for persistence. Does anyone know if there is a way to create a Managed Object Model other than by using the graphical tool in Xcode? It would take me a long long time to have to go through and re-create my object model in Xcode. It would be nice if I could just somehow import what I already have.

1 Answer 1

1

Xcode's graphical tool is the only way to create a model at this time. You can write code to dynamically create a model in memory but it can't be persisted (the data can but the model cannot).

You can also create the model from your data objects but that takes as long if not longer than using the graphical tool.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.