]> Dogcows Code - chaz/thecheat/blobdiff - CheatURLCommand.m
The Cheat 1.2
[chaz/thecheat] / CheatURLCommand.m
diff --git a/CheatURLCommand.m b/CheatURLCommand.m
new file mode 100644 (file)
index 0000000..3eda345
--- /dev/null
@@ -0,0 +1,30 @@
+//
+//  CheatURLCommand.m
+//  The Cheat
+//
+//  Created by Chaz McGarvey on 2/19/05.
+//  Copyright 2005 Chaz McGarvey. All rights reserved.
+//
+
+#import "CheatURLCommand.h"
+
+
+@implementation CheatURLCommand
+
+- (id)performDefaultImplementation
+{
+       NSDocumentController    *controller = [NSDocumentController sharedDocumentController];
+       CheatDocument                   *doc = [controller makeUntitledDocumentOfType:@"Cheat Document"];
+       if ( !doc ) {
+               ChazLog( @"nil document" );
+       }
+       [doc setMode:TCSearchMode];
+       [doc setConnectOnOpen:NO];
+       [controller addDocument:doc];
+       [doc makeWindowControllers];
+       [doc showWindows];
+       [doc connectWithURL:[self directParameter]];
+       return nil;
+}
+
+@end
This page took 0.019792 seconds and 4 git commands to generate.