Most apps save settings in their preferences file managed by cfprefsd as the UserDefaults server. Here’s how to avoid problems that can cause, and how to use the defaults command.
UserDefaults
Preference files are involved in many Mac problems, and are often their solution. Using them now isn’t simple: here is some guidance.
Maintaining a menu gathered across all the open documents could be tricky. Here’s a simple solution using UserDefaults and NotificationCenter.
How much more difficult is it to write your own code to handle user preferences, rather than letting UserDefaults handle them?
