Data persistence in iOS apps

J. Landman Gay jacque at hyperactivesw.com
Thu Apr 19 16:36:11 EDT 2012


On 4/19/12 12:14 PM, Graham Samuel wrote:
>
> As I suspected: but when I put my data stack into the bundle via
> 'Copy Files' in the Standalone Settings, it doesn't go into
> Documents, does it? This copy is in effect just as read-only as the
> Splash stack.

Right, the whole engine folder is read-only. The "copy files" pane in 
the standalone builder puts files into the engine folder.

> I guess I have to do something like:
>
> - check if the data stack is in the documents folder (i.e. has it
> ever been saved?)
>
> - if not, save it immediately, before any activity in the app.
>
> Thereafter one can update it as appropriate (at quit, or every time
> it changes - not sure which is the best policy).

I usually update on quit (shutdown) but I don't think it matters which 
you choose.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list