mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-19 01:51:09 +00:00
cleanup in main()
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@8599 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c7c709650a
commit
066bfa2d03
1 changed files with 10 additions and 18 deletions
|
@ -31,27 +31,19 @@ void createMenu();
|
|||
|
||||
int main(int argc, const char **argv)
|
||||
{
|
||||
id theApp;
|
||||
PCAppController *controller;
|
||||
id pool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
#ifndef NX_CURRENT_COMPILER_RELEASE
|
||||
initialize_gnustep_backend();
|
||||
#endif
|
||||
|
||||
theApp = [NSApplication sharedApplication];
|
||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||
PCAppController *controller;
|
||||
|
||||
[NSApplication sharedApplication];
|
||||
|
||||
createMenu();
|
||||
|
||||
controller = [[PCAppController alloc] init];
|
||||
[theApp setDelegate:controller];
|
||||
|
||||
[theApp run];
|
||||
|
||||
[controller release];
|
||||
[pool release];
|
||||
|
||||
return 0;
|
||||
controller = [[PCAppController alloc] init];
|
||||
[NSApp setDelegate:controller];
|
||||
|
||||
RELEASE(pool);
|
||||
|
||||
return NSApplicationMain (argc, argv);
|
||||
}
|
||||
|
||||
void createMenu()
|
||||
|
|
Loading…
Reference in a new issue