I thought I’d share a little code for getting and saving user preferences. The original code came from here. I just moved it to a separate class for ease of use in future projects.

The use is as follows:

…and the source: