Instance Property

searchScopes

An array containing the search scopes.

Declaration

@property(copy) NSArray *searchScopes;

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

predicate

The predicate used to filter query results.

sortDescriptors

An array of sort descriptor objects.

valueListAttributes

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

groupingAttributes

An array of grouping attributes. (read-only)

notificationBatchingInterval

The interval at which notification of updated results occurs.

delegate

The query’s delegate.

searchItems

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