/
MALNotificationsController.m
35 lines (27 loc) · 1.05 KB
/
MALNotificationsController.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
//
// MALNotificationsController.m
// iMAL
//
// Created by Stefano Pigozzi on 8/18/09.
// Copyright 2009 Stefano Pigozzi. All rights reserved.
//
#import "MALNotificationsController.h"
@implementation MALNotificationsController
- (NSDictionary *) registrationDictionaryForGrowl{
NSArray * n_all = [NSArray arrayWithObjects:@"KYON-KUN DENWA!!!", @"Scrobbled file", @"Added to list", nil];
NSArray * n_default = [NSArray arrayWithObjects:@"KYON-KUN DENWA!!!", @"Scrobbled file", @"Added to list", nil];
return [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:n_all, n_default, nil]
forKeys:[NSArray arrayWithObjects:GROWL_NOTIFICATIONS_ALL, GROWL_NOTIFICATIONS_DEFAULT, nil]];
}
- (void) awakeFromNib
{
[GrowlApplicationBridge setGrowlDelegate:self];
}
- (IBAction) denwaAction: (id) sender
{
[GrowlApplicationBridge notifyWithTitle:@"KYON-KUN DENWA!!!"
description:@"Phone is ringing and iMAL is awesome!"
notificationName:@"KYON-KUN DENWA!!!" iconData:nil
priority:0 isSticky:NO clickContext:nil];
}
@end