The only other minor issue with this is the name of the file. Normally, the format would be "com.CompanyName.AppName.plist." The "CompanyName" in this case, though, is my full name and I'm not sure I like having my full name spread around that much. I'm still up in the air about what I should set it to be.
Saturday, March 28, 2009
User Prefs
Never had to deal with NSUserDefaults up until now but found it very easy to understand. Later on I know there will be other preferences to store but for now I've got it set up that whenever you add a character, it will add it to the list of characters in the preferences file. Next time you relaunch the app, it will automatically load from the file. Fortunately, the data for that character is already stored in the Core Data database so there's virtually no wait on having everything load. The only thing missing in all of this, however, is the ability to remove a character.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment