IOS and FTP

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7394
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: IOS and FTP

Post by jacque » Wed Mar 07, 2012 7:28 pm

Nakia wrote:Update,

It seems to just be when using run mode in LC.
If I now run in simulator it is updating fld "temp" with progress as described in the release notes..

Thanks for your help everyone.

P.s. I could still use an explanation of why I should be using the cache folder in place of documents so I can avoid pain when I submit this to apple for app store approval..
Right, I didn't catch that you were running in the IDE. Most of the commands and functions you see in the iOS release notes are mobile-only. There are some places where you need to branch your code depending on whether the environment is "mobile" or not; some commands will not only fail, they'll throw errors in the IDE.

Regarding Documents and Cache folders: Documents are for permanent, user-generated content that can't be replaced by the app and which need to be backed up. User preferences fall into this category, for example, or any files the user creates themselves, such as files created by a notetaking app. The cache folder is for transient data that doesn't need saving, or any data that can be re-generated by the app. For example, one of my apps writes Help files to the cache folder because if the files are deleted by the OS they can easily be regenerated again. With the release of iCloud, which backs up the documents folder, Apple has become strict about the use of that folder and will reject your app if you store transient data there that doesn't need to be backed up. If you are storing your file only for the purpose of sending it to the server, then it belongs in cache. If the file contains user-generated data (scores, for example) that needs to be backed up to iCloud, then it should go into documents.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: IOS and FTP

Post by monte » Wed Mar 07, 2012 9:05 pm

Unless of course you use mergXattr to set the extended file attributes :-)
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: IOS and FTP

Post by Nakia » Thu Mar 08, 2012 12:14 am

The file is user generated data that needs to be referenced throughout several times through out the App so I will keep it in the documents folder for now. Sending that file is a secondary process but still keeps the file there for the app to read so I do think it would be best kept in the documents folder..

Correct?

Post Reply