Changeset 5017

Show
Ignore:
Timestamp:
10/27/07 11:54:48 (1 year ago)
Author:
morris
Message:

Search additional text fields

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Footagehead/trunk/FHSpotlightHandler.m

    r4993 r5017  
    7676 
    7777- (id)initHandlerWithURL:(WIURL *)url { 
     78        NSString        *string; 
     79         
    7880        self = [super initHandlerWithURL:url]; 
    7981 
     82        string = [[url path] substringFromIndex:1]; 
     83         
    8084        _query = [[NSMetadataQuery alloc] init]; 
    8185        [_query setPredicate:[NSPredicate predicateWithFormat: 
    82                 [NSSWF:@"(kMDItemDisplayName IN[cd] '%@') && (kMDItemContentTypeTree == 'public.image')", 
    83                         [[url path] substringFromIndex:1]]]]; 
     86                [NSSWF:@"(kMDItemDisplayName IN[cd] '%@' || kMDItemAuthors IN[cd] '%@' || kMDItemCity IN[cd] '%@' || kMDItemContributors IN[cd] '%@' || kMDItemDescription IN[cd] '%@' || kMDItemHeadline IN[cd] '%@' || kMDItemInstructions IN[cd] '%@' || kMDItemKeywords IN[cd] '%@' || kMDItemStateOrProvince IN[cd] '%@' || kMDItemTitle IN[cd] '%@') && (kMDItemContentTypeTree == 'public.image')", 
     87                        string, string, string, string, string, string, string, string, string, string]]]; 
    8488         
    8589        [[NSNotificationCenter defaultCenter]