mamburu: Fixed hanging/crashing on directory change in spotlight panel

CQTexperiment
Chris Moeller 2013-10-11 06:13:57 -07:00
parent eef7ac383c
commit 7f449edc14
1 changed files with 9 additions and 10 deletions

View File

@ -79,16 +79,15 @@ static NSPredicate * musicOnlyPredicate = nil;
[self registerDefaults]; [self registerDefaults];
// We want to bind the query's search scope to the user default that is // TODO: spotlightSearchPath is bound via IB, is the below needed?
// set from the NSPathControl. // NSDictionary *bindOptions =
NSDictionary *bindOptions = // [NSDictionary dictionaryWithObject:@"StringToSearchScopeTransformer"
[NSDictionary dictionaryWithObject:@"StringToSearchScopeTransformer" // forKey:NSValueTransformerNameBindingOption];
forKey:NSValueTransformerNameBindingOption]; //
// [self.query bind:@"searchScopes"
[self.query bind:@"searchScopes" // toObject:[NSUserDefaultsController sharedUserDefaultsController]
toObject:[NSUserDefaultsController sharedUserDefaultsController] // withKeyPath:@"values.spotlightSearchPath"
withKeyPath:@"values.spotlightSearchPath" // options:bindOptions];
options:bindOptions];
} }
return self; return self;