relative pathnames work on mobile?
Pierre Sahores
sc at sahores-conseil.com
Tue Oct 8 14:33:15 EDT 2013
Hi Freund Klaus,
Here is the way it works consistently, at least for me!, on both the iOS and Android platforms :
> put imagename.[png|jpeg|…] into url ("binfile:" & specialFolderPath("documents") & "/imagename.[png|jpeg|…]"
> put imagename.[png|jpeg|…] into url ("binfile:" & specialFolderPath("cache") & "/imagename.[png|jpeg|…]"
with the iOS option to do/not do :
> if the platform is "iphone"
> then iphoneSetDoNotBackupFile specialFolderPath("documents") & "/imagename.[png|jpeg|…]", true
Bis bald,
Pierre
Le 8 oct. 2013 à 19:24, Klaus major-k a écrit :
> Hi friends,
>
> short question, do not have a real device here in the moment...
>
> Suppoesed we have a stack in the folder where a folder "images" resides,
> we can have filenames of images RELATIVE to the stack:
> images/subfolder/image.png
>
> Works fine, now my question, does this also work on the mobile platform
> if I add the folder "images" and its subfolders via the "Copy files..." tab in
> the standalone builder settings?
>
> Or do I need to loop through all images and set hte filenames to the absolute path:
> -> specialfolderpath("engine") & "/images/subfolder/image.png"
> Know what I mean?
>
> Thanks a lot in advance!
>
>
> Best
>
> Klaus
> --
> Klaus Major
> http://www.major-k.de
> klaus at major-k.de
>
>
> _______________________________________________
> 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
--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com
More information about the use-livecode
mailing list