I currently have an application that lists food ingredients and the amount of proteins each one has. I used a .plist file to load the data whenever the application is launched.
The thing is I now want to write a new version that allows the user to add or remove their own food ingredients.
BUT, I have not found any articles in the documentation or on the internet that suggest how to pre populate a Core Data application. Now I know there is SQLite, but Core Data seems much simpler and easier to implement in my case.
Basically in SQLite I could just add the existing database file with tables and data into it, then when the application is loaded and run for the first time it will contain the data in my SQLite database.
Is there a way to do this in Core Data? Either via commands or through a graphical user interface?
If there is no easy way to do this, and I have to programmatically create my NSDictionary with the food ingredients, then store it with Core Data the first time my app is launched, then I’m afraid I might have to revert to using SQLite for this (which im trying to avoid since it seems rather complicated and I don’t know much SQLite).
Thanks in advance, Felipe.