Ignore the path to the application when extracting the port name.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17974 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-10-25 10:56:00 +00:00
parent 12ea75e949
commit fca20ea849
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2003-10-25 12:53 Matt Rice <ratmice@yahoo.com>
* Source/NSWorkspace.m (-_connectApplication:): Ignore the path to
the application when extracting the port name. (Committed by
Alexander Malmberg.)
2003-10-24 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSWorkspace.m: Change a few uses of '/' in stgrings to

View file

@ -2083,7 +2083,7 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
host = @"";
}
}
port = [appName stringByDeletingPathExtension];
port = [[appName lastPathComponent] stringByDeletingPathExtension];
/*
* Try to contact a running application.
*/