Spotlight panel no longer uses utility style (it doesn't float).

CQTexperiment
matthewleon 2008-02-16 20:08:45 +00:00
parent 332a062d93
commit b5c46a0b3a
2 changed files with 635 additions and 643 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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
{