0

有没有办法覆盖/禁用系统首选项窗格?我想将一个应用程序放在一起,该应用程序将禁用或覆盖节能器首选项窗格,并将它自己的规则放在适当的位置,以使机器进入待机状态、关闭显示器或其他各种节能活动。

4

2 回答 2

2

在 Mac OS X 中修改内置 PrefPanes 肯定没有受支持的方法。

如果您想弄乱电源管理,请对 pmset 命令行实用程序(即man pmset)进行一些研究。您可以使用 NSTask 围绕 pmset 编写一个包装器,这将允许您以标准 PrefPane 不允许的方式操作 PM 设置。然后,您可以使用自己的自定义 PrefPane 来使用 pmset 操作 PM 设置。

于 2010-03-09T03:32:54.353 回答
0

There isn't any supported way to do this. You could replace the existing prefpane (/System/Library/PreferencePanes/EnergySaver.prefPane) with one that has similar functionality but that would be pretty hostile to the user. I'd recommend implementing a new pane with the functionality you want.

于 2010-03-09T03:22:32.133 回答