Mac context menu

I am developing a Mac application for sharing files on various social platforms such as Flickr, Facebook, etc. I want to add a share with MyApp object to the file context menu. those. when I (control + click) any file in the file system, I should see a menu item, for example "share with MyApp" in the context menu, so that I can launch the application for file sharing. This requirement and my Question: is it possible and, if possible, how can this be achieved? My application will be compatible with OS version 10.6 and later. I know that there is a tool like Open with> my application name. But I want to show it directly in the context menu.

Thanks, LS Developer

0
source share
1 answer

First off, Mac is not an abbreviation.

Secondly, you cannot add directly to the Finder context menu, which is far beyond the Apple HIG. However, you can add a service that allows you to use the shared tool (Services are available from the context menu). You can find more information about OS X services here: http://www.cocoadev.com/index.pl?MakingAppServices

0
source

Source: https://habr.com/ru/post/916774/


All Articles