Spotlight: Search scopes work and crash solved. We now return to regular programming.

CQTexperiment
matthewleon 2008-02-18 20:46:53 +00:00
parent b6a46c5ca1
commit 94f23c4fdb
1 changed files with 14 additions and 0 deletions

View File

@ -79,6 +79,20 @@ static NSPredicate * musicOnlyPredicate = nil;
return self;
}
- (void)awakeFromNib
{
// We want to bind the query's search scope to the user default that is
// set from the NSPathControl.
NSDictionary *bindOptions =
[NSDictionary dictionaryWithObject:@"StringToSearchScopeTransformer"
forKey:NSValueTransformerNameBindingOption];
[self.query bind:@"searchScopes"
toObject:[NSUserDefaultsController sharedUserDefaultsController]
withKeyPath:@"values.spotlightSearchPath"
options:bindOptions];
}
- (void)performSearch
{
NSPredicate *searchPredicate;