]>
Commit | Line | Data |
---|---|---|
b080fed8 JB |
1 | --- CodeEditor/CodeEditor/main.m.orig 2003-10-09 17:06:06.000000000 +0200 |
2 | +++ CodeEditor/CodeEditor/main.m 2005-10-22 15:37:45.238113904 +0200 | |
3 | @@ -21,10 +21,15 @@ | |
4 | */ | |
5 | ||
6 | #include <AppKit/AppKit.h> | |
7 | +#include <Foundation/NSProcessInfo.h> | |
8 | #include "DocumentController.h" | |
9 | ||
10 | -int main(int argc, const char *argv[]) | |
11 | +int main(int argc, const char *argv[], char *env[]) | |
12 | { | |
13 | +#ifdef GS_PASS_ARGUMENTS | |
14 | + [NSProcessInfo initializeWithArguments: (char**)argv count: argc environment: env]; | |
15 | +#endif | |
16 | + | |
17 | NSAutoreleasePool *pool = [NSAutoreleasePool new]; | |
18 | DocumentController *controller = [DocumentController sharedDocumentController]; | |
19 | [NSApplication sharedApplication]; |