Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Listing Storage contents, clearing Global Storage

edited June 2012 in Questions Posts: 489

(1) Is there any available equivalent of spriteList(spritePackName) for Local, Project or Global Storage? (I can imagine functions listLocalData(), listProjectData() and listGlobalData() that would return an array of the valid keys.) (2) I can see that a function clearGlobalData() could be dangerous, but might Codea have a setting to clear Global Storage if it accumulates the unwanted results of experimentation?

Tagged:

Comments

  • Posts: 384

    Wow, @mpilgrem, I was just pondering that myself... I think it would be a good idea, especially for global data, because there is no other way to keep track of it between multiple projects.

    For saving project data, I just implemented a saved index string to keep track of what my project had saved. Then you can read it back and display it etc. Very useful for bug fixing too. It could be easy to get something wrong and fill up unnecessary space. The saved data appears in the Data.plist file if you want to check what your project has saved with something like iExplorer.

  • SimeonSimeon Admin Mod
    Posts: 5,427

    @mpilgrem I think those would be very useful. If you could add them to the issue tracker it would be appreciated: https://bitbucket.org/TwoLivesLeft/codea/issues

  • edited July 2012 Posts: 489

    I've added it as item number 143. (Updated) This was added in version 1.4.3 of Codea.

Sign In or Register to comment.