Spotlight tweaks.
parent
e1762b2495
commit
ff8cd0d773
|
@ -8,6 +8,7 @@
|
||||||
#import "AppleRemote.h"
|
#import "AppleRemote.h"
|
||||||
#import "PlaylistLoader.h"
|
#import "PlaylistLoader.h"
|
||||||
#import "OpenURLPanel.h"
|
#import "OpenURLPanel.h"
|
||||||
|
#import "SpotlightWindowController.h"
|
||||||
|
|
||||||
@implementation AppController
|
@implementation AppController
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#import "SpotlightSearchController.h"
|
#import "SpotlightSearchController.h"
|
||||||
//#import "SpotlightWindowController.h"
|
#import "SpotlightWindowController.h"
|
||||||
#import "PlaylistLoader.h"
|
#import "PlaylistLoader.h"
|
||||||
|
|
||||||
// Store a class predicate for searching for music
|
// Store a class predicate for searching for music
|
||||||
|
@ -68,12 +68,16 @@ static NSPredicate * musicOnlyPredicate = nil;
|
||||||
|
|
||||||
- (IBAction)addToPlaylist:(id)sender;
|
- (IBAction)addToPlaylist:(id)sender;
|
||||||
{
|
{
|
||||||
|
[self.query disableUpdates];
|
||||||
|
|
||||||
NSArray *songPaths = [[playlistController selectedObjects]valueForKey:@"kMDItemPath"];
|
NSArray *songPaths = [[playlistController selectedObjects]valueForKey:@"kMDItemPath"];
|
||||||
NSMutableArray *songURLs = [NSMutableArray arrayWithCapacity:[songPaths count]];
|
NSMutableArray *songURLs = [NSMutableArray arrayWithCapacity:[songPaths count]];
|
||||||
for (NSString *songPath in songPaths) {
|
for (NSString *songPath in songPaths) {
|
||||||
[songURLs addObject:[NSURL fileURLWithPath:songPath]];
|
[songURLs addObject:[NSURL fileURLWithPath:songPath]];
|
||||||
}
|
}
|
||||||
// [spotlightWindowController.playlistLoader addURLs:songURLs sort:NO];
|
[spotlightWindowController.playlistLoader addURLs:songURLs sort:NO];
|
||||||
|
|
||||||
|
[self.query enableUpdates];
|
||||||
}
|
}
|
||||||
|
|
||||||
@synthesize query;
|
@synthesize query;
|
||||||
|
|
Loading…
Reference in New Issue