Contents

NSFileProviderDomain

A File Provider extension’s domain.

Declaration

class NSFileProviderDomain

Overview

You can use domains to partition a file provider’s content. When you use domains, a single file provider can act as if multiple file providers were installed, and users can dynamically switch from one domain to another. You can use domains to represent different accounts or locations.

By default, a File Provider extension has no domain. You can register domains by calling the NSFileProviderManager class’s add(_:completionHandler:) method. A new NSFileProviderExtension instance is created for each domain that you register. The NSFileProviderExtension object’s domain property indicates which domain the file provider belongs to. Any items returned by that file provider also belong to the domain.

Topics

Creating domains

Accessing data

Syncing Desktop and Documents folders

Supporting search

Testing