-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathQSSpotlightPlugIn_Source.m
52 lines (41 loc) · 1.2 KB
/
QSSpotlightPlugIn_Source.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// QSSpotlightPlugIn_Source.m
// QSSpotlightPlugIn
//
// Created by Nicholas Jitkoff on 10/28/04.
// Copyright __MyCompanyName__ 2004. All rights reserved.
//
#import "QSSpotlightPlugIn_Source.h"
#import <QSCore/QSObject.h>
@implementation QSSpotlightPlugIn_Source
- (BOOL)indexIsValidFromDate:(NSDate *)indexDate forEntry:(NSDictionary *)theEntry{
return YES;
}
- (NSImage *) iconForEntry:(NSDictionary *)dict{
return nil;
}
- (NSString *)identifierForObject:(id <QSObject>)object{
return nil;
}
- (NSArray *) objectsForEntry:(NSDictionary *)theEntry{
NSMutableArray *objects=[NSMutableArray arrayWithCapacity:1];
QSObject *newObject;
newObject=[QSObject objectWithName:@"TestObject"];
[newObject setObject:@"" forType:QSSpotlightPlugInType];
[newObject setPrimaryType:QSSpotlightPlugInType];
[objects addObject:newObject];
return objects;
}
// Object Handler Methods
/*
- (void)setQuickIconForObject:(QSObject *)object{
[object setIcon:nil]; // An icon that is either already in memory or easy to load
}
- (BOOL)loadIconForObject:(QSObject *)object{
return NO;
id data=[object objectForType:QSSpotlightPlugInType];
[object setIcon:nil];
return YES;
}
*/
@end