mamburu: Fixed hanging/crashing on directory change in spotlight panel
parent
eef7ac383c
commit
7f449edc14
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue