Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yosemite Finder Sync simple example

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

like image 542
mingxiao Avatar asked Sep 03 '14 22:09

mingxiao


People also ask

What is Findersync appex?

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.

What are Finder extensions on Mac?

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).


2 Answers

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.

like image 160
David Eison Avatar answered Oct 16 '22 16:10

David Eison


Checkout liferay-nativity It provides pretty good examples of how to handle Finder Sync Extensions. Another open source project is seafile.

like image 33
Joe Inner Avatar answered Oct 16 '22 16:10

Joe Inner