When you develop a program called Wiggy, you set its support files to be in ~/Library/Application Support/Wiggy/.
But, for the Listbox data set (the text file), I place it where I want, and better, I let my users to choose where to save the data, just like Word, Excel, Preview, TextEdit, Page, LibreOffice, and so on do.
In case of trouble (where do I save or how do I do ), you can get an eye on what other applications do that, eventually ask in this forum.
I discovered earlier today (before this conversation started) that I had a bug in a current project (because I booted in an external HDD), and I made the changes after my nap. But these were application data (or support files), not user data as what this Conversation is about.
Now, since this is your application (you = reader), you do exactly what you want.
[quote=438718:@Richard Kaplan]@Emile Schwarz - Thanks for the help. My point regarding the default location on the Mac is that it is in ~/Library/Application Support. That folder contains subfolders for storing data related to many different installed software packages; there is even a Xojo subfolder.
But for some reason a FolderItem is stored in ~/Library/Application
rather than ~/Library/Application/Xojo
The Xojo subfolder would seem to be more consistent with typical protocol for OS X applications.[/quote]
Example code almost always takes shortcuts and doesn’t embody best practices.
If we talk about listboxes containing editable cells, I prefer storing an object representing a row-content in the correct datatypes in the rowtag of each row. I use the listbox as a GUI control, no more no less.