隐藏Mac OS下的所有桌面图标 [英] Hide all desktop icons under Mac OS

查看:213
本文介绍了隐藏Mac OS下的所有桌面图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法来在Mac OS X下的objective-c中以编程方式显示/隐藏桌面图标。

I am looking for a way to show/hide desktop icons programmatically in objective-c under Mac OS X.

你对我如何实现

感谢您的帮助,

回答:

推荐答案

Finder有一个隐藏的偏好。将 CreateDesktop 的值设置为 com.apple.finder kCFBooleanFalse ,然后杀死Finder。要恢复桌面图标,请删除 CreateDesktop 首选项,然后再次杀死Finder。

The Finder has a hidden preference for this. Set the value of CreateDesktop under com.apple.finder to kCFBooleanFalse, then kill the Finder. To put the desktop icons back, delete the CreateDesktop preference and kill the Finder again.

当然,不支持API功能;它可以随时消失。

Of course, this isn't a supported API feature; it could go away at any time.

这篇关于隐藏Mac OS下的所有桌面图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆