When an application is installed on a phone (or in the simulator) a number of 
initial folders are
created for use by the application. You can locate the paths to these folders 
using the
specialFolderPath() function with the following selectors:

• home – the (unique) folder containing the application bundle and its 
associated data and
folders

• documents – the folder in which the application should store any document 
data (this folder
is backed up by iTunes on sync)

• cache – the folder in which the application should store any transient data 
that needs to be
preserved between launches (this folder is not backed up by iTunes on sync)

• library – the folder in which the application can store data of various 
types. In particular,
data private to the application should be stored in a folder named with the 
app's bundle
identifier inside library. (this folder is backed up by iTunes on sync).

• temporary – the folder in which the application should store any temporary 
data that is not
needed between launches (this folder is not backed up by iTunes on sync)

• engine – the folder containing the built standalone engine (i.e. the bundle). 
This is useful for
constructing paths to resources that have been copied into the bundle at build 
time.
In general you should only create files within the documents, cache, and 
temporary folders. Indeed,
be careful not to change or add any files within the application bundle. The 
application bundle is
digitally signed when it is built, and any changes to it after this point will 
invalidate the signature
and prevent it from launching.


> Date: Sat, 20 Jun 2015 18:59:41 -0700
> Subject: iOS not liking specialFolderPath("Preferences")
> From: doch...@gmail.com
> To: use-livecode@lists.runrev.com
> 
> In the code sequence (in preOpenStack)
> 
> 
>    *answer* "ck 28"
> 
>    *answer*  specialFolderPath("Preferences")
> 
> 
> 
> errorDialog produces
> 
>  Execution error 21,39,1
> 
> 241, 39, 1 preOpenStack
> 
> 353,0,0  stack "/var/moble/Containers/Bundle/Spplication/<hex
> codeVampHeart.app/VampHeart
> 
> 
> 
> This is on an actual 6+; the simulator just crashes hard.
> 
> Error 21 seems to be
> 
> 21 answer: error in response expression
> 
> 
> While 241 is
> 
> 241 Handler: error in statement
> 
> 
> Neither of which seem to make any sense when asking for the preferences
> folder.
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
                                          
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to