Optimisations etc

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4100 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-04-19 14:34:50 +00:00
parent 5eb0a2e7a0
commit 7f8efd6908
5 changed files with 54 additions and 12 deletions

View file

@ -107,13 +107,24 @@ NSApplication *NSApp = nil;
{
if (self == [NSApplication class])
{
/*
* Dummy functions to fool linker into linking files that contain
* only catagories - static libraries seem to have problems here.
*/
extern void GSStringDrawingDummyFunction();
GSStringDrawingDummyFunction();
NSDebugLog(@"Initialize NSApplication class\n");
// Initial version
[self setVersion:1];
// So the application knows
gnustep_gui_app_is_in_dealloc = NO; // it's within dealloc and
} // can prevent -release
} // loops.
[self setVersion: 1];
/*
* So the application knows it's within dealloc and
* can prevent -release loops
*/
gnustep_gui_app_is_in_dealloc = NO;
}
}
+ (NSApplication *)sharedApplication
{ // If the global application does