以编程方式打开“显示”首选项?

时间:2019-04-16 11:21:52

标签: objective-c macos cocoa

如何以编程方式打开“显示”偏好设置,如下所示,用于网络参考

[[ NSTask
      launchedTaskWithLaunchPath: @"/usr/bin/open"
      arguments: [ NSArray
   arrayWithObject: [ @"/System/Library/PreferencePanes/Network.prefPane/" stringByExpandingTildeInPath ]]
  ] waitUntilExit ];

1 个答案:

答案 0 :(得分:0)

您可以使用此菜单找到想要打开的Pref窗格

new-homepage

显示首选项

/System/Library/PreferencePanes/