Added main() to main.m, removed from Gorm.m.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20039 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-09-09 01:58:22 +00:00
parent 30006bfbc0
commit 5d449c1f20
4 changed files with 36 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2004-09-08 22:00 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: Removed main function from Gorm class file.
* main.m: Added main function here.
2004-09-07 21:00 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: Removed some old code which measured the startup

View file

@ -176,6 +176,7 @@ Gorm_HEADERS = \
GormFilePrefsManager.h
Gorm_OBJC_FILES = \
main.m \
Gorm.m \
GormDocument.m \
GModelDecoder.m \

6
Gorm.m
View file

@ -1591,10 +1591,4 @@ static BOOL _isInInterfaceBuilder = NO;
// END OF DEPRECATED TEMPLATES //
////////////////////////////////////////////////////////
// main...
int
main(int argc, const char **argv)
{
return NSApplicationMain(argc, argv);
}

30
main.m Normal file
View file

@ -0,0 +1,30 @@
/* main.m
*
* Copyright (C) 2004 Free Software Foundation, Inc.
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
* Date: 2004
*
* This file is part of GNUstep.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <AppKit/AppKit.h>
int main(int argc, const char *argv[])
{
return NSApplicationMain(argc, argv);
}