Re: NSWorkspaceDidTerminateApplicationNotification bug?
Re: NSWorkspaceDidTerminateApplicationNotification bug?
- Subject: Re: NSWorkspaceDidTerminateApplicationNotification bug?
- From: Mike Davis <email@hidden>
- Date: Mon, 14 Jan 2002 23:27:57 -0500
On Monday, January 14, 2002, at 11:09 PM, cocoa-dev-
email@hidden wrote:
Date: Mon, 14 Jan 2002 20:07:24 -0800
Subject: Re: NSWorkspaceDidTerminateApplicationNotification bug?
From: David Rehring <email@hidden>
To: Cocoa Dev <email@hidden>
On 1/14/02 7:18 PM, Vince DeMarco at email@hidden wrote:
Welcome to the wonderful world of filename extensions.... :-(
This has nothing to do with extensions, it just a bug, Have you
filed a
bug????
Are you sure?
From the examples quoted, it would appear to be stripping off
everything
after the period. If I was having this problem, I would run some more
files
through this to verify it, but it appears to be treating '.7' and
'.0X' as
filename extensions and stripping them off.
Yes i just looked at the code and i filed the bug a few minutes ago.
The
code is too aggressive in removing the extensions.What it is supposed
to
do is remove the .app extension, but if the program doesn't have one it
should not remove it.
I want to know what you do when you instantiate two instances of the
same process name, which is easy to do. Does NSWorkspace mess up again?
You should deliver the path of the process, including any extension
really. It's a bit late now, however though you could add it into the
dictionary along with other useful information like the pid that's
terminated.
For example...
@"NSApplication" = @"foo2.3.2"
@"NSApplicationPath" = @"/Applications/foo2.3.2.app"
@"NSApplicationPID" = 666 (NSNumber)
So, it does have to do with filename extensions. We wouldn't have to
bother
with this hiding/showing/appending/removal stuff if Apple wasn't trying
to
switch from type/creator to only using extensions...
It has nothing to do with file extensions... just programming. It's
probably old OpenSTEP code.
Later,
--
David Rehring Psychos do not explode when light hits
Senior Software Engineer them, no matter how crazy they are...
Atimi Software, Inc.
www.atimi.com And totally insane guy!