Re: iOS not liking specialFolderPath(Preferences)

2015-06-21 Thread Richard Gaskin

Dr. Hawkins wrote:
 On Sat, Jun 20, 2015 at 7:53 PM, John Dixon wrote:

 In general you should only create files within the documents,
 cache, and temporary folders.

 But I'm not even to the point of accessing a file when this happens.

 This his happening by my *asking* where that folder is . . .

 And this line was not causing a crash back in January.

If it's crashing in the simulator but not on the device it may be a 
problem with the simulator configuration.  If it crashes on both it may 
be a bug in LiveCode.


But I think John's main point was that there is no Preferences folder 
on iOS.


See the Dictionary entry for specialFolderPath for a list of supported 
constants available for each OS.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
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


Re: iOS not liking specialFolderPath(Preferences)

2015-06-21 Thread Dr. Hawkins
On Sat, Jun 20, 2015 at 7:53 PM, John Dixon dixo...@hotmail.co.uk wrote:

 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.


But I'm not even to the point of accessing a file when this happens.

This his happening by my *asking* where that folder is . . .

And this line was not causing a crash back in January.



-- 
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


RE: iOS not liking specialFolderPath(Preferences)

2015-06-20 Thread John Dixon
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