Objects of this class are NSThread subclasses to query the mdfind command line tool, a tool to query the Spotlight index.
// assuming delegate implements the delegate protocol
RMSpotlightQuery *query = [RMSpotlightQuery queryWithDelegate:self];
[query query:@"image.jpg"];
// The delegate will be notified with a NSArray of filename strings
RMSpotlightQuery *query = [RMSpotlightQuery queryWithDelegate:self];
[query queryExactFilename:@"image.jpg"];
RMSpotlightQuery *query = [RMSpotlightQuery queryWithDelegate:self];
[query query:@"image.jpg" withOptions:@[/*...*/]];
- Raffael Hannemann
- @raffael_me
- http://www.raffael.me/
Copyright (c) 2013 Raffael Hannemann Under BSD License.
Follow @raffael_me for similar releases.