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];
// 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];
// TODO: spotlightSearchPath is bound via IB, is the below needed?
// NSDictionary *bindOptions =
// [NSDictionary dictionaryWithObject:@"StringToSearchScopeTransformer"
// forKey:NSValueTransformerNameBindingOption];
//
// [self.query bind:@"searchScopes"
// toObject:[NSUserDefaultsController sharedUserDefaultsController]
// withKeyPath:@"values.spotlightSearchPath"
// options:bindOptions];
}
return self;