2008-02-11 07:45:34 +00:00
|
|
|
//
|
|
|
|
// SpotlightWindowController.h
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Matthew Grinshpun on 10/02/08.
|
2008-02-14 14:07:10 +00:00
|
|
|
// Copyright 2008 Matthew Leon Grinshpun. All rights reserved.
|
2008-02-11 07:45:34 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
@class PlaylistLoader;
|
|
|
|
|
|
|
|
@interface SpotlightWindowController : NSWindowController {
|
|
|
|
IBOutlet PlaylistLoader *playlistLoader;
|
2008-02-13 23:51:36 +00:00
|
|
|
IBOutlet NSArrayController *playlistController;
|
|
|
|
IBOutlet NSPathControl *pathControl;
|
|
|
|
NSMetadataQuery *query;
|
|
|
|
NSString *searchString;
|
|
|
|
NSString *spotlightSearchPath;
|
2008-02-11 07:45:34 +00:00
|
|
|
}
|
|
|
|
|
2008-02-13 23:51:36 +00:00
|
|
|
- (IBAction)addToPlaylist:(id)sender;
|
|
|
|
|
|
|
|
- (void)performSearch;
|
|
|
|
- (NSPredicate *)processSearchString;
|
|
|
|
|
|
|
|
@property(retain) NSMetadataQuery *query;
|
|
|
|
@property(copy) NSString *searchString;
|
|
|
|
@property(copy) NSString *spotlightSearchPath;
|
2008-02-11 07:45:34 +00:00
|
|
|
|
|
|
|
@end
|