Tidied initialisation code

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3527 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-01-05 21:24:06 +00:00
parent 49d9358051
commit 3732a3f592
2 changed files with 2 additions and 6 deletions

View file

@ -1,7 +1,8 @@
Tue Jan 5 18:05:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
Source/NSMatrix.m: bugfix growing matrix - from stark@easynet.fr
Source/NSApplication.m: Added [+new] as a synonym for the
Source/NSApplication.m: Modified -init method to return the shared
application object so that +new is effectively a synonym for the
[+sharedApplication] method - from stark@easynet.fr
Tue Dec 22 12:30:00 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -114,11 +114,6 @@ static NSString *NSAbortModalException = @"NSAbortModalException";
} // can prevent -release
} // loops.
+ (id) new
{
return [self sharedApplication];
}
+ (NSApplication *)sharedApplication
{ // If the global application does
if (!NSApp) // not yet exist then create it