mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 00:20:51 +00:00
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:
parent
5eb0a2e7a0
commit
7f8efd6908
5 changed files with 54 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue