mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Minor update
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5682 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0b37f2e6c6
commit
9dabc31e25
2 changed files with 16 additions and 1 deletions
|
@ -2,6 +2,8 @@ Fri Jan 7 18:37:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
|||
|
||||
* Source/NSApplication.m: ([-finishLoading]) add support for loading
|
||||
main nib.
|
||||
* Source/Functions.m: NSApplicationMain() trivial update to make use
|
||||
of NSPrincipalClass info.
|
||||
|
||||
Wed Jan 5 20:04:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
*/
|
||||
|
||||
#include <Foundation/NSAutoreleasePool.h>
|
||||
#include <Foundation/NSBundle.h>
|
||||
|
||||
#include <AppKit/NSApplication.h>
|
||||
#include <AppKit/NSEvent.h>
|
||||
|
@ -41,6 +42,9 @@ int
|
|||
NSApplicationMain(int argc, const char **argv)
|
||||
{
|
||||
NSAutoreleasePool *pool;
|
||||
NSDictionary *infoDict;
|
||||
NSString *className;
|
||||
Class appClass;
|
||||
|
||||
#if LIB_FOUNDATION_LIBRARY
|
||||
extern char **environ;
|
||||
|
@ -56,7 +60,16 @@ NSApplicationMain(int argc, const char **argv)
|
|||
initialize_gnustep_backend();
|
||||
#endif
|
||||
|
||||
[[NSApplication sharedApplication] run];
|
||||
infoDict = [[NSBundle mainBundle] infoDictionary];
|
||||
className = [infoDict objectForKey: @"NSPrincipalClass"];
|
||||
appClass = NSClassFromString(className);
|
||||
|
||||
if (appClass == 0)
|
||||
{
|
||||
appClass = [NSApplication class];
|
||||
}
|
||||
|
||||
[[appClass sharedApplication] run];
|
||||
|
||||
[pool release];
|
||||
|
||||
|
|
Loading…
Reference in a new issue