Spotlight panel no longer uses utility style (it doesn't float).
parent
332a062d93
commit
b5c46a0b3a
File diff suppressed because it is too large
Load Diff
|
@ -206,6 +206,20 @@ static NSPredicate * musicOnlyPredicate = nil;
|
|||
return [NSCompoundPredicate andPredicateWithSubpredicates: subpredicates];
|
||||
}
|
||||
|
||||
- (void)searchForArtist:(NSString *)artist
|
||||
{
|
||||
[self showWindow:self];
|
||||
self.searchString = [NSString stringWithFormat:@"%%a\"%@\"", artist];
|
||||
}
|
||||
|
||||
- (void)searchForAlbum:(NSString *)album
|
||||
{
|
||||
[self showWindow:self];
|
||||
self.searchString = [NSString stringWithFormat:@"%%l\"%@\"", album];
|
||||
}
|
||||
|
||||
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[self.query stopQuery];
|
||||
|
@ -228,19 +242,6 @@ static NSPredicate * musicOnlyPredicate = nil;
|
|||
[self.query enableUpdates];
|
||||
}
|
||||
|
||||
- (void)searchForArtist:(NSString *)artist
|
||||
{
|
||||
[self showWindow:self];
|
||||
searchField.stringValue = [NSString stringWithFormat:@"%%a\"%@\"", artist];
|
||||
self.searchString = searchField.stringValue;
|
||||
}
|
||||
- (void)searchForAlbum:(NSString *)album
|
||||
{
|
||||
[self showWindow:self];
|
||||
searchField.stringValue = [NSString stringWithFormat:@"%%l\"%@\"", album];
|
||||
self.searchString = searchField.stringValue;
|
||||
}
|
||||
|
||||
// Don't update the track list until some results have been gathered
|
||||
- (id)valueForKeyPath:(NSString *)keyPath
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue