Preferences are saved from osx app