forked from migrs/QSTwit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
TwitterSource.m
47 lines (35 loc) · 1.07 KB
/
TwitterSource.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
//
// TwitterSource.m
// Twitter
//
// Created by Joshua Holt on 12/23/09.
//
#import "TwitterSource.h"
@implementation TwitterSource
- (BOOL)indexIsValidFromDate:(NSDate *)indexDate forEntry:(NSDictionary *)theEntry{
return YES;
}
- (NSImage *) iconForEntry:(NSDictionary *)dict{
return nil;
}
// Return a unique identifier for an object (if you haven't assigned one before)
//- (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:TwitterType];
[newObject setPrimaryType:TwitterType];
[objects addObject:newObject];
return objects;
}
// Object Handler Methods
- (void)setQuickIconForObject:(QSObject *)object{
[object setIcon:[QSResourceManager imageNamed:@"QSTwit"]]; // An icon that is either already in memory or easy to load
}
- (BOOL)loadIconForObject:(QSObject *)object{
return NO;
}
@end