Minor fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16695 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-05-11 14:49:11 +00:00
parent a36ee5fb70
commit 149d522d53
2 changed files with 9 additions and 2 deletions

View file

@ -4,6 +4,8 @@
Reduce private method name pollution a little.
* Images/common_UnknownApplication.tiff: copied from WM ...
* Images/common_UnknownTool.tiff: similar image for unix cmd-line tools.
* Source/NSApplication.m: Add some user info to the launch
notification (provided by urbanek@host.sk).
2003-05-05 Michael Hanni <michael@deviant-behavior.com>

View file

@ -827,8 +827,13 @@ static NSCell* tileCell = nil;
[nc postNotificationName: NSApplicationDidFinishLaunchingNotification
object: self];
userInfo = [NSDictionary dictionaryWithObject:
[[NSProcessInfo processInfo] processName] forKey: @"NSApplicationName"];
userInfo = [NSDictionary dictionaryWithObjectsAndKeys:
[[NSProcessInfo processInfo] processName], @"NSApplicationName",
[[NSBundle mainBundle] bundlePath], @"NSApplicationPath",
[NSNumber numberWithInt: [[NSProcessInfo processInfo] processIdentifier]],
@"NSApplicationProcessIdentifier",
nil];
NS_DURING
[[workspace notificationCenter]
postNotificationName: NSWorkspaceDidLaunchApplicationNotification