ExtFreeDiskSpace External for iOSExtFreeDiskSpace is a LiveCode external for iOS, which contains two functions to read the total and free disk space and returns these values as integers measured in kilobytes.
You need this external to check the available disk space on your iPod, iPhone or iPad. The built-in function diskSpace() always returns 0, while the extFreeDiskSpace external returns the correct value.
The picture shows an iPhone app created with LiveCode, using the extFreeDiskSpace external to calculate the free disk space as percentage of the total disk space and showing the result in a pie graph.
This script calls the external. It returns the number of available gigabytes in new style (1000
kilobytes in a megabyte):
put 1000^2 into mySq1000
set the numberFormat to "#.00"
put extFreeDiskSpace()/mySq1000 into myGBs
return myGBs && "GB"
More information is included in the Read Me file.
Note: the current version works with Arm7 processors only.
LoginYou need to log in to download free LiveCode and other programming-related goodies. If you don't have an account yet, please register.
copyright © 2005-2012 by Economy-x-Talk, Nijmegen, the Netherlands - no rights can be derived from this website - economy-x-talk bears no responsibility for linking and linked websites - disclaimers apply at all times