// // NSApplication+GitXScripting.m // GitX // // Created by Nathan Kinsinger on 8/15/10. // Copyright 2010 Nathan Kinsinger. All rights reserved. // #import "NSApplication+GitXScripting.h" #import "PBDiffWindowController.h" @implementation NSApplication (GitXScripting) - (void)showDiffScriptCommand:(NSScriptCommand *)command { NSString *diffText = [command directParameter]; if (diffText) { PBDiffWindowController *diffController = [[PBDiffWindowController alloc] initWithDiff:diffText]; [diffController showWindow:nil]; [[NSApplication sharedApplication] activateIgnoringOtherApps:YES]; } } @end