Finder file icon badging (icon overlay) on Mac OS X >= 10.6

后端 未结 5 1339
鱼传尺愫
鱼传尺愫 2020-12-30 15:44

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\

5条回答
  •  忘掉有多难
    2020-12-30 16:19

    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.

提交回复
热议问题