Reputation: 5522
I've created an app, and want to add core data functionality.
I have two classes - project
and photo
, is there a way to easily add them to my core data model. I know it is possible to do the reverse and create a class from an Entity
in the model.
I'm using Xcode 4.3.
Upvotes: 1
Views: 1012
Reputation: 458
Storing an image in Core Data can be as efficient as storing a URL or a file URL. The important step is in Xcode: Check the image data attribute, "Store in external record file".
Upvotes: 0
Reputation: 119242
There is no built-in tool that looks at your class and updates the core data model in Xcode.
However, it isn't particularly difficult to do. Assuming these classes are principally used for data storage:
If you're talking about updating an existing app that is using plists to store, and you want to migrate existing data into your core data store, that is a separate routine you would have to include in your app to run on the first launch of the new version.
Upvotes: 3