Preferences

Yeah, I’ve found a solution too:
http://download.cnet.com/plist-Class-for-REALbasic/3000-2247_4-45808.html?tag=bc
Even tho it says RealBasic, I’ve tested and it works perfect in Xojo.
I don’t know whether it’s 64 Bit compatible as the project I’m working on with this requires macoslib which is unfortunately 32 bit :(.

As a previous poster mentioned, you can use an SQLite database. I do this for all user preferences such as window positions and sizes, language choice and whatever other things the user sets. Load them all at start-up and save any changes when the program closes.

Yeah, but as I said above, I’m actually just trying to read com.apple.dock.plist and write to it. Anyway, the plist class I showed above works perfectly.
Thanks anyway,
Julian

Just found this whilst checking my feedback reports, it’s a feature request for a Xojo preferences object that uses the correct methods for each platform.

<https://xojo.com/issue/18346>

For the time being, I wrote a replacement for TT’s Smart Preferences. Super easy to use and handles things via NSUserDefaults.
It supports all basic types & some more: String, Integer, Double, Boolean, Color, Currency, FolderItem, Picture and String Array.
(If you need more, let me know.)
OS X only but I’ll update it for other platforms as soon as I have a Windows/Linux project to work on.
https://forum.xojo.com/28145-reading-and-writing-preferences

[quote=236040:@Sam Rowlands]Just found this whilst checking my feedback reports, it’s a feature request for a Xojo preferences object that uses the correct methods for each platform.

<https://xojo.com/issue/18346>[/quote]
Added this case to My Top Cases in Feedback.
Went from 247th to 133rd. :wink:

[quote=236076:@Paul Sondervan]Added this case to My Top Cases in Feedback.
Went from 247th to 133rd. ;)[/quote]
Well damn. Wish I could afford Pro lol