A File Provider extension's domain.


@interface NSFileProviderDomain : NSObject


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 addDomain:completion: 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.


Creating Domains


A unique identifier for a file provider's domain.

Accessing Data


The name of the domain displayed in the user interface.


The domain's unique identifier.


The path of the domain's subdirectory relative to the file provider's shared container.


Inherits From

See Also

Working with Domains

+ managerForDomain:

Returns a newly created file provider manager for the specified domain.

+ addDomain:completionHandler:

Adds a domain to the File Provider extension.

+ getDomainsWithCompletionHandler:

Returns all of the File Provider extension's domains.

+ removeDomain:completionHandler:

Removes a domain from the File Provider extension.

+ removeAllDomainsWithCompletionHandler:

Removes all domains from the File Provider extension.