Ok here is the deal, just a little explanation.
For iOS you are not allowed to download binaries because they could have code in them that could be used as a virus.
I use the Splash stack method in my desktop standalones so that I can update the main stack via a download.
Now here is where it gets weird...
I cannot use that method for iOS because it's against the rules but, your main stack will appear to be the same thing. Both would be located in specialFolderPath ("documents")/mainStack.livecode. Now it's clear what you are using it for is not against the Apple rules to me, and if you were to go through with it I'd really like to know if your app gets accepted, lots of people will.
Just want to make sure you have a backup plan.
Code: Select all
put arrayEncode(myArray) into URL("binfile:" & specialFolderPath ("documents")&"/myText.txt")
(I forget if that is "file:" or "binfile:")
Code: Select all
put URL("binfile:" & specialFolderPath ("documents")&"/myText.txt") into myArray
arrayDecode(myArray)
There is probably a one liner for that one.
I'm just typing those from memory so I might have something wrong but it is pretty much that easy. There will be some checking added to see if the file is there or not the for the first time the app is run.
Well to set your mind at some ease a database is a binary file and they allow downloading of them.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!