1


In Cocoa on Mac, I would like to add a menu item in the Finder's popup menu that comes when I right-click on a file or a folder, and having this item pointing to a function in my app.
How can I achieve this ?
Thanks !

Laurent Crivello
  • 3,809
  • 6
  • 45
  • 89

1 Answers1

1

A good place to start is CocoaDev: StandardService. It outlines what you are trying to accomplish and they give some source code to follow such as the MakingServices example.

2015 Update: As of Yosemite, Apple includes an extension called Finder Sync which allows you to accomplish most of what a Service used to do.

Best of luck.

Lucas Derraugh
  • 6,929
  • 3
  • 27
  • 43
  • Thanks for your answer Lucas ! PlugIns do indeed not seem to work under cocoa-64 bits. – Laurent Crivello Feb 24 '12 at 08:54
  • 1
    Despite following these examples, or event Apple's published ones, I can't get any Service published... – Laurent Crivello Feb 24 '12 at 10:09
  • @Lucas thanks. But http://stackoverflow.com/questions/24628574/how-to-include-a-field-to-an-app-on-mac?noredirect=1#comment38171792_24628574 is about making a field, which when clicked launch an application – imp Jul 16 '14 at 09:28