Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write a Finder Plugin in Snow Leopard

Everywhere I look I see that writing a Finder Plugin in Snow Leopard is much easier than it was in Leopard. Can someone point me to some tutorial or simple code example I can download?

I am trying to write a customer right-click menu item for Finder.

like image 220
OZG Avatar asked Oct 03 '10 12:10

OZG


2 Answers

There is no official or supported plugin system for the Finder. Starting with OS X 10.6, you will need to inject code into the Finder process and override objective C methods in the Finder process.

I've done this for a proprietary project. I can tell you that the reason that there are no examples or tutorials for this is because it is a significantly difficult and time consuming development task. For this reason, there's plenty of incentive for individuals or organizations who have accomplished this to guard the specifics of their process closely.

If there's any way at all that you can accomplish your goal using the Services API, do it. Writing a Finder plugin will take you 1-2 solid months of painstaking development and reasonably deep knowledge of C and Objective-C internals.

If you're still convinced that you want do to this, grab mach_star. Good luck.

like image 51
anthony Avatar answered Nov 01 '22 17:11

anthony


If by plug-in you mean contextual menu, you can do this via the services API.

Hope this helps.

PK

like image 32
Pavan Avatar answered Nov 01 '22 16:11

Pavan