Is there a way to do a Spotlight query, in Obj-C, similar to what mdfind
does? I need to write a method with the following signature:
-(NSString *)mdfind:(NSString *)theFileToLookFor
where the returned NSString
is the first path found by the search.
Any help will be really appreciated.
the apis are in CoreServices.framework. start with the ones which have the prefix MDQuery