Instance Method

showSearchResultsForQueryString:

Displays a Spotlight search results window in Finder for the specified query string.

Declaration

- (BOOL)showSearchResultsForQueryString:(NSString *)queryString;

Parameters

queryString

The string to search for.

Return Value

YES if the communication with Finder was successful, otherwise NO.

Discussion

Finder becomes the active app, if possible. The user can further refine the search via the Finder user interface.

It is safe to call this method from any thread of your app.