I’m creating a “utility” type application with a main and flipside view, and an underlying “model” which the flipside view edits, and the main view “consumes”.
Following on from this question:
iPhone OS Utility App – Flipside View and Main View communication
My question is: where should the model be stored, both physically and logically? and what format should the model be? – an NSObject or a raw C-Struct?
The model contains 7-8 items of data that are simply bools and NSIntegers – nothing fancy. Any sample code or tutorials would be great, I’d rather not have to trawl through videos.
I store my model as an archived object in NSUserDefault. I suggest use NSObject-derived model as it’s easier to save/load it from development point of view.