Protocol

FIFinderSyncProtocol

The FIFinderSync protocol defines the interface for adding badges, custom shortcut menus, and toolbar buttons to the Finder.

Declaration

protocol FIFinderSyncProtocol

Topics

Managing Badges, Shortcut Menus, and Toolbar Buttons

func beginObservingDirectory(at: URL)

Tells the extension that the user is looking at a monitored directory or at one of its subdirectories.

func endObservingDirectory(at: URL)

Tells the extension that the user has stopped looking at a monitored directory or at one of its subdirectories.

func menu(for: FIMenuKind) -> NSMenu?

Requests a custom menu from the extension.

func requestBadgeIdentifier(for: URL)

Requests a badge for the given file or directory.

var toolbarItemImage: NSImage

The image for the extension’s toolbar button. (read-only)

var toolbarItemName: String

The name of the extension’s toolbar button. (read-only)

var toolbarItemToolTip: String

The tooltip text for the extension’s toolbar button. (read-only)

Constants

enum FIMenuKind

The different kinds of custom menus that the Finder Sync extension can provide.

Relationships

Conforming Types