mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:40:39 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4997 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1334dec400
commit
0e1e8d6ffa
2 changed files with 16 additions and 18 deletions
|
@ -61,6 +61,7 @@
|
|||
#include <AppKit/NSMenu.h>
|
||||
#include <AppKit/NSMenuItem.h>
|
||||
#include <AppKit/NSCursor.h>
|
||||
#include <AppKit/NSWorkspace.h>
|
||||
#include <AppKit/GSServicesManager.h>
|
||||
#include <AppKit/IMLoading.h>
|
||||
#include <AppKit/DPSOperators.h>
|
||||
|
@ -173,6 +174,7 @@ NSApplication *NSApp = nil;
|
|||
NSString *appIconFile;
|
||||
NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
|
||||
NSString *filePath;
|
||||
NSDictionary *userInfo;
|
||||
|
||||
mainModelFile = [infoDict objectForKey: @"NSMainNibFile"];
|
||||
if (mainModelFile && ![mainModelFile isEqual: @""])
|
||||
|
@ -238,6 +240,13 @@ NSApplication *NSApp = nil;
|
|||
[[NSDocumentController sharedDocumentController] openDocumentWithContentsOfFile:filePath display:YES];
|
||||
}
|
||||
}
|
||||
|
||||
userInfo = [NSDictionary dictionaryWithObject:
|
||||
[[NSProcessInfo processInfo] processName] forKey: @"NSApplicationName"];
|
||||
[[[NSWorkspace sharedWorkspace] notificationCenter]
|
||||
postNotificationName: NSWorkspaceDidLaunchApplicationNotification
|
||||
object: self
|
||||
userInfo: userInfo];
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue