NSMetadataQuery for Documentation in Snow Leopard
NSMetadataQuery for Documentation in Snow Leopard
- Subject: NSMetadataQuery for Documentation in Snow Leopard
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 4 Sep 2009 12:15:47 +0700
I have an app which uses NSMetadataQuery to get information.
NSString * searchString = @"NSDate";
NSString *predicateFormatContent = @"kMDItemTextContent like %@";
NSPredicate *predicate = [ NSPredicate predicateWithFormat:
predicateFormat, searchString ];
[ query setPredicate: predicate];
NSMutableArray *scopes = [ [ NSMutableArray alloc ] init];
[ scopes addObject: @"/Developer/Documentation/DocSets" ];
[ query setSearchScopes: scopes ];
[ query startQuery ];
This works fine in Leopard, but only if I hade done:
mdimport -Vp /Developer/Documentation/DocSets/
com.apple.documentation.<...>.docset/Contents
first.
But when I try to do this in Snow Leopard I get:
Total processing time spent in importer plug-ins: 0.000000 seconds for
0 files
Top 0 most expensive files for importer plug-ins:
and of course my app does not find any info about "NSDate".
What am I doing wrong?
Kind regards
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden