]> Dogcows Code - chaz/thecheat/blob - CheatURLCommand.m
update contact information and project URL
[chaz/thecheat] / CheatURLCommand.m
1
2 /*
3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
5 *
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
7 *
8 * Distributable under the terms and conditions of the 2-clause BSD
9 * license; see the file COPYING for the legal text of the license.
10 */
11
12
13 #import "CheatURLCommand.h"
14
15
16 @implementation CheatURLCommand
17
18 - (id)performDefaultImplementation
19 {
20 NSDocumentController *controller = [NSDocumentController sharedDocumentController];
21 CheatDocument *doc = [controller makeUntitledDocumentOfType:@"Cheat Document"];
22 if ( !doc ) {
23 ChazLog( @"nil document" );
24 }
25 [doc setMode:TCSearchMode];
26 [doc setConnectOnOpen:NO];
27 [controller addDocument:doc];
28 [doc makeWindowControllers];
29 [doc showWindows];
30 [doc connectWithURL:[self directParameter]];
31 return nil;
32 }
33
34 @end
This page took 0.028373 seconds and 4 git commands to generate.