iPad stack downloading

Chris Sheffield cmsheffield at icloud.com
Thu Jan 31 13:27:09 EST 2013


Hi Hugh,

My guess is you'd be fine with a stack file full of images, so long as it doesn't contain any executable code. As far as I know, there are no restrictions on types of files that can be downloaded (but I may be wrong). For Read Naturally's One Minute Reader app, our in-app purchases consist of text, audio, and images. We simply zip it all up in an archive, then it's unzipped to the user's device after being downloaded. So you could consider doing it that way too. Using revZip is fairly easy, as I'm sure you know.

As Klaus said, you can only write/save files to the app's sandbox, not to the app bundle. So you would need to use the app's Documents folder. There are other possibilities, but for your purpose, the Docs folder would probably be the best. Be aware that files saved in the Docs folder are automatically backed up to iTunes when the device is backed up, so if you don't want to back up your downloaded files, you can use iphoneSetDoNotBackupFile to prevent this.

Chris


--
Chris Sheffield
Read Naturally, Inc.
www.readnaturally.com



On Jan 31, 2013, at 11:11 AM, FlexibleLearning.com <admin at FlexibleLearning.com> wrote:

> Is it allowed to download a stackfile of images for an iPad app?
> 
> I'd like the User to be able to download paid-for sets of artwork for use by
> an app. What is the appropriate way to accomplish this? I think I know that
> Apple does not permit an app to download executable code, but a stackfile of
> images has no code.
> 
> Second question:
> Whether images are downloaded as individual files or as a stack, I assume
> they/it can be placed in any privately named subfolder within the app
> bundle, yes?
> 
> Trying to establish the ground rules before committing to too much coding
> here!
> 
> Hugh Senior
> FLCo
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list