Economy-x-Talk - extfreediskspace external
You are not logged in
click here to log in
Expand All
Collapse All

ExtFreeDiskSpace External for iOS

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


Example

This script calls the external. It returns the number of available gigabytes in new style (1000 kilobytes in a megabyte):

function freeDiskSpace00

  put 1000^2 into mySq1000

  set the numberFormat to "#.00"

  put extFreeDiskSpace()/mySq1000 into myGBs

  return myGBs && "GB"

end freeDiskSpace00


More information is included in the Read Me file.

Note: the current version works with Arm7 processors only.

Login

You need to log in to download free LiveCode and other programming-related goodies. If you don't have an account yet, please register.
E-mail
Password
Don't have an account yet? Register here.

Share on FaceBook! Digg! Delicious submit to reddit
click on an icon to share this web site with your friends

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