mingxiao
mingxiao

Reputation: 1812

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

Upvotes: 7

Views: 4318

Answers (2)

Joe Inner
Joe Inner

Reputation: 1470

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

Upvotes: 4

David Eison
David Eison

Reputation: 1366

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.

Upvotes: 10

Related Questions