Search by artist and album works from context menu.
parent
6a915b458b
commit
3c8b325a00
File diff suppressed because it is too large
Load Diff
|
@ -14,6 +14,7 @@
|
|||
IBOutlet PlaylistLoader *playlistLoader;
|
||||
IBOutlet NSArrayController *playlistController;
|
||||
IBOutlet NSPathControl *pathControl;
|
||||
IBOutlet NSSearchField *searchField;
|
||||
NSMetadataQuery *query;
|
||||
NSString *searchString;
|
||||
NSString *spotlightSearchPath;
|
||||
|
|
|
@ -230,11 +230,15 @@ static NSPredicate * musicOnlyPredicate = nil;
|
|||
|
||||
- (void)searchForArtist:(NSString *)artist
|
||||
{
|
||||
NSLog(@"When Matthew gets less lazy I will search for songs by %@", artist);
|
||||
[self showWindow:self];
|
||||
searchField.stringValue = [NSString stringWithFormat:@"%%a\"%@\"", artist];
|
||||
self.searchString = searchField.stringValue;
|
||||
}
|
||||
- (void)searchForAlbum:(NSString *)album
|
||||
{
|
||||
NSLog(@"When Matthew gets less lazy I will search for songs from %@", 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
|
||||
|
|
Loading…
Reference in New Issue