Question

I have a file listing in my application and I would like to allow people to right-click on an item and show the same contextual menu as Finder does. Is this possible?

The same functionallity but for Windows Explorer is discussed in How do you show the Windows Explorer context menu from a C# application?.

Was it helpful?

Solution

You can't extract the Finder's contextual menu in any stable way, no. Neither can you tell the Finder “show your contextual menu here, as if the user had right-clicked on this item”.

You'll have to make your own.

OTHER TIPS

If I understand the question correctly...

Showing a custom icon and action in your Finder Context Menu is now possible in OS X 10.10 Yosemite via a Finder Sync Extension:

https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/Finder.html

Finder Sync Extension in Context Menu

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top