-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stefano Pigozzi
committed
Aug 20, 2009
1 parent
2fe37ef
commit dfa983e
Showing
9 changed files
with
607 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// MALNotificationsController.h | ||
// iMAL | ||
// | ||
// Created by Stefano Pigozzi on 8/18/09. | ||
// Copyright 2009 Stefano Pigozzi. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
#import <Growl/Growl.h> | ||
|
||
@interface MALNotificationsController : NSObject <GrowlApplicationBridgeDelegate> { | ||
|
||
} | ||
|
||
- (IBAction) denwaAction: (id) sender; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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:@"Denwa", @"Scrobbled file", nil]; | ||
NSArray * n_default = [NSArray arrayWithObjects:@"Denwa", @"Scrobbled file", 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:@"Denwa" iconData:nil | ||
priority:0 isSticky:NO clickContext:nil]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.