34 lines
801 B
Objective-C
34 lines
801 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;
|
|
NSMetadataQuery *query;
|
|
NSString *searchString;
|
|
NSString *spotlightSearchPath;
|
|
NSArray *oldResults;
|
|
}
|
|
|
|
- (IBAction)addToPlaylist:(id)sender;
|
|
|
|
- (void)performSearch;
|
|
- (NSPredicate *)processSearchString;
|
|
|
|
@property(retain) NSMetadataQuery *query;
|
|
@property(copy) NSString *searchString;
|
|
@property(copy) NSString *spotlightSearchPath;
|
|
@property(retain) NSArray *oldResults;
|
|
|
|
@end
|