objective c - Storing large amount of information to be generated before run-time -
i'm developing tour application storing , displaying information different sights , sculptures, , i'm investigating different options store information.
- all of content generated before runtime, , nothing generated @ runtime.
- i'm looking convenient way write/generate it, such fetching information spreadsheet. therefore considering xml , csv, sqlite, core-data, or archiving.
- the content stored custom subclasses of nsobject, such tour class (nsobject subclass), instance variables such nsarray of sights (nsobject subclass) view, , *tourname (nsstring).
- i define content in - (id)initwithnibname:(nsstring *)nibnameornil bundle:(nsbundle *)nibbundleornil method of main view controller, i'm it's not efficient way.
any suggestion welcome, advantages , disadvantages. also, core-data seemed best option, seemed me data generated programmatically @ runtime. or there way generate instances of entities in core-data before run-time?
thank you.
you can generate coredata database on mac enough. can write native app manage database yourself, or keep raw data in other format (csv, json, etc) , convert coredata.
in event, create coredata database, , include application bundle. when create coredata stack in app, set read-only option on persistent store, , should go.
Comments
Post a Comment