Spotlight panel no longer uses utility style (it doesn't float).
This commit is contained in:
parent
332a062d93
commit
b5c46a0b3a
2 changed files with 635 additions and 643 deletions
File diff suppressed because it is too large
Load diff
|
@ -206,6 +206,20 @@ static NSPredicate * musicOnlyPredicate = nil;
|
||||||
return [NSCompoundPredicate andPredicateWithSubpredicates: subpredicates];
|
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
|
- (void)dealloc
|
||||||
{
|
{
|
||||||
[self.query stopQuery];
|
[self.query stopQuery];
|
||||||
|
@ -228,19 +242,6 @@ static NSPredicate * musicOnlyPredicate = nil;
|
||||||
[self.query enableUpdates];
|
[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
|
// Don't update the track list until some results have been gathered
|
||||||
- (id)valueForKeyPath:(NSString *)keyPath
|
- (id)valueForKeyPath:(NSString *)keyPath
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue