36 lines
865 B
Objective-C
36 lines
865 B
Objective-C
//
|
|
// SpotlightWindowController.h
|
|
// Cog
|
|
//
|
|
// Created by Matthew Grinshpun on 10/02/08.
|
|
// Copyright 2008 Matthew Leon Grinshpun. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
@class PlaylistLoader;
|
|
|
|
@interface SpotlightWindowController : NSWindowController {
|
|
IBOutlet PlaylistLoader *playlistLoader;
|
|
IBOutlet NSArrayController *playlistController;
|
|
IBOutlet NSPathControl *pathControl;
|
|
IBOutlet NSSearchField *searchField;
|
|
NSMetadataQuery *query;
|
|
NSString *searchString;
|
|
NSString *spotlightSearchPath;
|
|
}
|
|
|
|
- (IBAction)addToPlaylist:(id)sender;
|
|
|
|
- (void)performSearch;
|
|
- (NSPredicate *)processSearchString;
|
|
|
|
- (void)searchForArtist:(NSString *)artist;
|
|
- (void)searchForAlbum:(NSString *)album;
|
|
|
|
@property(retain) NSMetadataQuery *query;
|
|
@property(copy) NSString *searchString;
|
|
@property(copy) NSString *spotlightSearchPath;
|
|
|
|
@end
|