I am trying to create a simple (ie. Hello World) example of Yosemite's Finder Sync.
That link has a tutorial, but does anyone know where the source is? Or if they have their own barebones example? Something that can register when a folder is being viewed and how to create a context menu
In OS X, the Finder Sync extension point lets you cleanly and safely modify the Finder's user interface to express file synchronization status and control. Unlike most extension points, Finder Sync does not add features to a host app. Instead, it lets you modify the behavior of the Finder itself.
FinderUtilities is a macOS App Extension (Finder Extension), which enables you to easily launch Terminal. app to the selected directory, create empty files in Finder's folder hierarchy and also enables copying of selected file or directory paths to the pasteboard (clipboard) using right-click (or control-click).
A Hello World example is available as a template in Xcode. From an existing application project, pick File->New->Target, choose Application Extensions, pick the Finder Sync Extension, give it a name and hit Finish. Then take a look at the FinderSync.m file added in your new target, it has the basics such as badging a file and providing a context menu and toolbar.
Checkout liferay-nativity It provides pretty good examples of how to handle Finder Sync Extensions. Another open source project is seafile.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With