5 // Created by Chaz McGarvey on 2/19/05.
6 // Copyright 2005 Chaz McGarvey. All rights reserved.
9 #import "CheatURLCommand.h"
12 @implementation CheatURLCommand
14 - (id)performDefaultImplementation
16 NSDocumentController
*controller
= [NSDocumentController sharedDocumentController
];
17 CheatDocument
*doc
= [controller makeUntitledDocumentOfType
:@
"Cheat Document"];
19 ChazLog( @
"nil document" );
21 [doc setMode
:TCSearchMode
];
22 [doc setConnectOnOpen
:NO
];
23 [controller addDocument
:doc
];
24 [doc makeWindowControllers
];
26 [doc connectWithURL
:[self directParameter
]];