CFPreferencesGetAppBooleanValue未返回预期值

时间:2014-08-14 15:56:31

标签: macos core-foundation

我已将Dock设置为自动隐藏:

host:~ user$ defaults read com.apple.dock autohide
1

但是,这段代码说不然:

Boolean hidesIsValid = false;
Boolean hides = CFPreferencesGetAppBooleanValue( CFSTR("autohide"),
                                                 CFSTR("com.apple.dock"),
                                                 &hidesIsValid );

hidesIsValidhidesfalse。我错过了什么?

0 个答案:

没有答案