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?