• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSMetadataQuery for Documentation in Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Input Managers in Snow Leopard
  • Next by Date: Re: Input Managers in Snow Leopard
  • Previous by thread: Re: Input Managers in Snow Leopard
  • Next by thread: Semi-document architecture
  • Index(es):
    • Date
    • Thread