-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTwitterPluginGrowlHelper.m
45 lines (37 loc) · 1.16 KB
/
TwitterPluginGrowlHelper.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
//
// TwitterPluginGrowlHelper.m
// TwitterPlugin
//
// Created by Motohiro Takayama on 9/29/09.
// Copyright 2009 deadbeaf.org. All rights reserved.
//
#import "TwitterPluginGrowlHelper.h"
#import <Growl/Growl.h>
@implementation TwitterPluginGrowlHelper
- (id) init
{
if (self = [super init]) {
[GrowlApplicationBridge setGrowlDelegate:self];
}
[GrowlApplicationBridge setGrowlDelegate:self];
return self;
}
- (NSDictionary *) registrationDictionaryForGrowl
{
NSArray *keys = [NSArray arrayWithObjects:GROWL_NOTIFICATIONS_ALL,GROWL_NOTIFICATIONS_DEFAULT, nil];
NSArray *vals = [NSArray arrayWithObjects:[NSArray arrayWithObject:@"New Tweet"], [NSArray arrayWithObject:@"New Tweet"], nil];
return [NSDictionary dictionaryWithObjects:vals forKeys:keys];
}
- (NSString *) applicationNameForGrowl
{
return @"QSTwitter";
}
#if 0
- (NSData *) applicationIconDataForGrowl
{
NSLog(@"icon image = %p", [QSResourceManager imageNamed:@"girl_square"]);
NSLog(@"icon image data = %p", [[QSResourceManager imageNamed:@"girl_square"] TIFFRepresentation]);
return [[QSResourceManager imageNamed:@"girl_square"] TIFFRepresentation];
}
#endif // 0
@end