![]() Just something to think seriously about if your developing an ASS app. ![]() Using user defaults, you can do in two to four lines of code what you may end up writing in dozens of custom lines of reading/writing/parsing routines. You should be wary of creating your own preferences scheme using reading and writing to text files. Using a plist file via user defaults is DEFINITELY the way to go in an ASStudio app. ![]() Actually, even if you're just using this in a plain applescript application, you can still access the user defaults system through 'do script' calls to a custom plist file, which is probably just are reliable, if not more, than reading and writing to a text file. If you're not using this in a ASStudio project, then I apologize for making assumptions. That means no mess for you, no added work for you, and reliability that you will not be able to guarantee with your custom method. User defaults is easy to use, is automatically configured for every different user, and is technology that is built right into the application framework. ![]() Saving your preferences in a text file is considered a hack, and should only be done in the most unique of cases. ![]() What I'm trying to set up is a txt file that I can search for example "ChckbxA - " and then use the next characters to change my app.Īre you going to be using this method in an applescript studio app? If so, you're missing out on the built-in capabilities of your app called " user defaults" that are the preferred method of storing application state. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |