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

This commit is contained in:
Chris Moeller 2013-10-11 06:13:57 -07:00
parent eef7ac383c
commit 7f449edc14

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;