3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
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.
13 #import "CheatURLCommand.h"
16 @implementation CheatURLCommand
18 - (id)performDefaultImplementation
20 NSDocumentController
*controller
= [NSDocumentController sharedDocumentController
];
21 CheatDocument
*doc
= [controller makeUntitledDocumentOfType
:@
"Cheat Document" error
:nil];
23 ChazLog( @
"nil document" );
25 [doc setMode
:TCSearchMode
];
26 [doc setConnectOnOpen
:NO
];
27 [controller addDocument
:doc
];
28 [doc makeWindowControllers
];
30 [doc connectWithURL
:[self directParameter
]];