Adium plugin to pipe events/messages to an external program
at master 29 lines 690 B view raw
1#import "PipeEventPlugin.h" 2#import "PipeEventDetailPane.h" 3 4@implementation PipeEventDetailPane 5 6- (NSString *)nibName{ 7 return @"PipeEvent"; 8} 9 10/* put the command back in the text field */ 11- (void)configureForActionDetails:(NSDictionary *)inDetails listObject:(AIListObject *)inObject 12{ 13 NSString *command = [inDetails objectForKey:KEY_COMMAND]; 14 [text_command setStringValue:(command ? command : @"")]; 15 16 [super configureForActionDetails:inDetails listObject:inObject]; 17} 18 19- (NSDictionary *)actionDetails 20{ 21 if ([text_command stringValue]) { 22 return [NSDictionary dictionaryWithObject:[text_command stringValue] forKey:KEY_COMMAND]; 23 } else { 24 return nil; 25 } 26} 27 28@end 29