Instance Property


The URL of the presented file or directory.



var presentedItemURL: URL? { get }


File presenters must implement this property and use it to return the file or directory of interest. If this object presents a group of related files that all reside in the same directory, specify the URL of the directory instead of creating separate presenter objects for each file. For example, a single-window application that manages multiple files inside a project directory should monitor the project directory.

The URL associated with your item may be requested by objects not associated with your presenter. Therefore, your implementation of the accessor method for this property must be thread safe and capable of running in multiple dispatch or operation queues simultaneously.

See Also

Accessing File Presenter Attributes

var presentedItemOperationQueue: OperationQueue

The operation queue in which to execute presenter-related messages.


var primaryPresentedItemURL: URL?

The URL of a secondary item’s primary presented file or directory.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software