-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathAppDelegate.m
45 lines (37 loc) · 893 Bytes
/
AppDelegate.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
//
// GrowlDelegate.m
// PortSensor
//
// Created by Jeff Standen on 11/29/08.
// Copyright 2008 WebGroup Media, LLC.. All rights reserved.
//
#import "AppDelegate.h"
@implementation AppDelegate
-(void) awakeFromNib {
NSLog(@"Yawn!");
//[GrowlApplicationBridge setGrowlDelegate:self];
NSLog(@"Yawn2!");
}
-(NSDictionary *) registrationDictionaryForGrowl {
NSArray *notifications;
notifications = [NSArray arrayWithArray:@"Growl Test"];
NSDictionary *dict;
dict = [NSDictionary dictionaryWithObjectsAndKeys:
notifications, GROWL_NOTIFICATIONS_ALL,
notifications, GROWL_NOTIFICATIONS_DEFAULT,
nil];
return dict;
}
-(IBAction) growl:(id) sender {
NSLog(@"Grrrrrrrrrooowl!");
[GrowlApplicationBridge
notifyWithTitle:@"Title"
description:@"Description"
notificationName:@"Growl Test"
iconData:nil
priority:0
isSticky:NO
clickContext:nil
];
}
@end