Contents

NSFileProviderExtension

The principal class for the nonreplicated File Provider extension.

Declaration

class NSFileProviderExtension

Overview

To create a nonreplicated File Provider extension, start by creating a subclass of the NSFileProviderExtension class. When implementing your NSFileProviderExtension subclass, remember:

  • Override all of the extension’s methods (except the deprecated methods), even if your implementation is only an empty method.

  • Use your method implementations to provide access to the documents and folders managed by your file provider.

  • Don’t call super in your method implementations.

Don’t use the NSFileProviderExtension class in macOS. Instead, create an NSObject subclass that adopts the NSFileProviderReplicatedExtension and NSFileProviderEnumerating protocols. For more information, see Replicated File Provider extension.

Topics

Working with items and persistent identifiers

Managing shared files

Handling actions

Managing domains

Accessing thumbnails

Working with services

Managing placeholders

Accessing the document storage

See Also

Nonreplicated extension