Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Properties File

I've used the Ti.App.Properties to store some informations from my application but i think sometimes the Properties File is not updated.

What i can say is the following:
For example, i have a textField called fieldUsername and i set the propertie

Ti.App.Properties.setString('username', fieldUsername.value);

whenever the value is modified. When i inicializate the application, i get the value of the propertie but sometimes it is not correct!

My question is:
Where can i find the Properties File from my application mobile? I want to confirm that the file is updated whenever i change some value from it.

Gilliard Alan.

— asked June 22nd 2010 by Gilliard Lopes
  • iphone
  • properties

2 Answers

  • Accepted Answer

    On iPhone properties are stored in the User Defaults. Also, I have heard of some folks having (unconfirmed by me personally) issues with properties that are fixed in the latest 1.4 RC, so you may want to check that out.

    — answered June 22nd 2010 by Kevin Whinnery
  • I also run into this problem

    When a user clicks "logout", i use the set property method to "clear out" a setting that decides "logged in or not"

    if I close down the simulator and then fire it back up, the app sees the user as logged in still

    — answered June 22nd 2010 by Stephen Gilboy
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.