]> Dogcows Code - chaz/thecheat/blob - CheatURLCommand.m
The Cheat 1.2
[chaz/thecheat] / CheatURLCommand.m
1 //
2 // CheatURLCommand.m
3 // The Cheat
4 //
5 // Created by Chaz McGarvey on 2/19/05.
6 // Copyright 2005 Chaz McGarvey. All rights reserved.
7 //
8
9 #import "CheatURLCommand.h"
10
11
12 @implementation CheatURLCommand
13
14 - (id)performDefaultImplementation
15 {
16 NSDocumentController *controller = [NSDocumentController sharedDocumentController];
17 CheatDocument *doc = [controller makeUntitledDocumentOfType:@"Cheat Document"];
18 if ( !doc ) {
19 ChazLog( @"nil document" );
20 }
21 [doc setMode:TCSearchMode];
22 [doc setConnectOnOpen:NO];
23 [controller addDocument:doc];
24 [doc makeWindowControllers];
25 [doc showWindows];
26 [doc connectWithURL:[self directParameter]];
27 return nil;
28 }
29
30 @end
This page took 0.029181 seconds and 4 git commands to generate.