Commits

Anonymous committed 7b26c7e

tired of fighting with the icons for today.
gonna poke at them again next time.

  • Participants
  • Parent commits 761c052
  • Branches default

Comments (0)

Files changed (3)

GrowlApplicationTicket.h

 
 #pragma mark -
 
+- (NSImage *) icon;
+
+#pragma mark -
+
 - (NSSet *) allNotifications;
 - (void) setAllNotifications:(NSSet *) inSet;
 

GrowlApplicationTicket.m

 - (void) saveTicket {
 	//save an XML file of this object to configure the prefs of apps that aren't running
 }
+#pragma mark -
+
+- (NSImage *) icon {
+	return _icon;
+}
 
 #pragma mark -
 

GrowlController.m

 	
 }
 
+#pragma mark -
+
+- (void) dispatchNotification:(NSNotification *) note {
+	NSLog( @"%@", note );
+	
+	NSMutableDictionary *aDict = [NSMutableDictionary dictionaryWithDictionary:[note userInfo]];
+	[aDict objectForKey:GROWL_NOTIFICATION_ICON] ? [[_tickets objectForKey:[aDict objectForKey:GROWL_APP_NAME]] icon]
+												 : [aDict objectForKey:GROWL_NOTIFICATION_ICON];
+	NSLog( @"%@", [aDict objectForKey:GROWL_NOTIFICATION_ICON] );
+	[_displayController displayNotificationWithInfo:aDict];
+}
+
 @end