Search for files and other items on the local device, and index your app's content for searching.



class NSMetadataQuery

A query that you perform against Spotlight metadata.

protocol NSMetadataQueryDelegate

An interface that enables the delegate of a metadata query to provide substitute results or attributes.


class NSMetadataItem

The metadata associated with a file.

See Also

Files and Data Persistence

File System

Create, read, write, and examine files and folders in the file system.

Archives and Serialization

Convert objects and values to and from property list, JSON, and other flat binary representations.


Persistently store domain-scoped pieces of information used to configure your app.


Manage files and key-value data that are automatically synchronized among a user's iCloud devices.