I'm very confused by how these menus are designed to work with an NSTextView. I can't find any docs on the subject.
I'm specifically talking about the "Check Spelling While Typing" and "Correct Spelling Automatically" menus.
Some puzzles:
- On app launch, "Spelling and Grammar > Correct Spelling Automatically" seems to take its value from System Preferences > Keyboard > Text > Correct Spelling Automatically. But changing it in the menu does NOT update the value in System Preferences.
- These settings seem to be unique to each NSTextView, which is odd, rather than being across all NSTextViews in the app. So due to 1. this is a problem because the options get reset when the user moves to another NSTextView! Not a great user experience.