How can I change the Dock preferences programmatically?

前端 未结 3 972
庸人自扰
庸人自扰 2021-01-07 06:03

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

3条回答
  •  被撕碎了的回忆
    2021-01-07 06:52

    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?

提交回复
热议问题