在Mac OS X> = 10.6上的Finder文件图标标记(图标覆盖) [英] Finder file icon badging (icon overlay) on Mac OS X >= 10.6

查看:130
本文介绍了在Mac OS X> = 10.6上的Finder文件图标标记(图标覆盖)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种解决方案,以便在Mac上使用可可粉进行文件图标覆盖(图标标记)(如Dropbox在Mac上一样).

有人知道这样做的方法吗?

我已经搜索了Xcode文档,并查看了 scpplugins 源代码,是一种古老的碳代码.

解决方案

由于Finder在Snow Leopard中进行了重新处理,因此较旧的Carbon方法将不再起作用.我用来在Finder中标记图标的方法涉及编写一个自定义捆绑包,然后将其捆绑到Finder中.

查看Wolf Rentzsch的mach_inject(https://github.com/rentzsch/mach_star/tree/master/mach_inject),以便将自定义捆绑软件注入Cocoa应用程序.

使用class-dump可以查看Cocoa应用程序(例如Snow Leopard和Lion中的Finder)的头文件,以了解您需要在自己的包中覆盖的内容. /p>

I'm searching for a solution to do File icon overlays (icon badging) (like Dropbox does it on mac) with cocoa on Mac.

Does anyone knows a way to do this?

I've searched the Xcode docs and looked into scpplugins source code which is kind of old carbon code.

解决方案

Since the Finder was reworked in Snow Leopard, the older Carbon methods will no longer work. The route I've taken to be able to badge icons in Finder involves writing a custom bundle which then needs to be injected into the Finder.

Look into Wolf Rentzsch's mach_inject (https://github.com/rentzsch/mach_star/tree/master/mach_inject) to be able to inject a custom bundle to a Cocoa application.

Use class-dump to be able to get a look into the header files of a Cocoa application (such as the Finder in Snow Leopard and Lion) to get an idea of what you will need to override in your own bundle.

这篇关于在Mac OS X> = 10.6上的Finder文件图标标记(图标覆盖)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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