Instance Property

searchScopes

An array containing the search scopes.

Declaration

var searchScopes: [Any] { get set }

Discussion

This array can contain NSURL or NSString objects that represent file-system directories or the search scopes for the query. For a list of valid search scopes, see Metadata Query Search Scopes. An empty array indicates that there is no limitation on where the query searches.

See Also

Configuring Queries

var predicate: NSPredicate?

The predicate used to filter query results.

var sortDescriptors: [NSSortDescriptor]

An array of sort descriptor objects.

var valueListAttributes: [String]

An array of attributes whose values are gathered by the query.

var groupingAttributes: [String]?

An array of grouping attributes. (read-only)

var notificationBatchingInterval: TimeInterval

The interval at which notification of updated results occurs.

var searchItems: [Any]?

An array of objects that define the query’s scope.

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