I\'m new to Cocoa/macOS programming. I just found out that NSUserDefaults can be used to change application/system settings, like the way the defaults
NSUserDefaults
defaults
You can use AppleScript to set some of the properties of the dock by scripting System Preferences, you may want to take a look at seeing if you can take that approach instead? Maybe call some AppleScript from your app?