1 #import "GrowlITTSWDisplay.h"
2 #import "GrowlITTSWController.h"
3 #import "GrowlITTSWPrefs.h"
4 #import "GrowlDefines.h"
5 #import "GrowlDefinesInternal.h"
6 #import "GrowlApplicationNotification.h"
8 @implementation GrowlITTSWDisplay
11 [preferencePane release];
15 - (NSPreferencePane *) preferencePane {
16 if (!preferencePane) {
17 preferencePane = [[GrowlITTSWPrefs alloc] initWithBundle:[NSBundle bundleWithIdentifier:@"com.ithinksw.growl-ittsw"]];
19 return preferencePane;
22 //we implement requiresPositioning entirely because it was added as a requirement for doing 1.1 plugins, however
23 //we don't really care if positioning is required or not, because we are only ever in the menubar.
24 - (BOOL)requiresPositioning {
29 - (void) displayNotification:(GrowlApplicationNotification *)notification {
30 NSDictionary *dict = [notification dictionaryRepresentation];
31 NSString *title = [dict objectForKey:GROWL_NOTIFICATION_TITLE];
32 NSString *desc = [dict objectForKey:GROWL_NOTIFICATION_DESCRIPTION];
33 NSImage *image = [dict objectForKey:GROWL_NOTIFICATION_ICON];
34 [[GrowlITTSWController sharedController] showWindowWithTitle:title desc:desc image:image];