open some app that suppots the URL scheme

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28094 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-03-18 16:12:37 +00:00
parent bc7a00e00b
commit bf45641a25
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-03-18 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSWorksace.m: ([openURL:]) fix to open some app which
supports the URL scheme.
2009-03-18 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSView.m (-beginPageInRect:atPlacement:): Add parentheses

View file

@ -808,9 +808,13 @@ static NSString *_rootPath = @"/";
NSString *appName;
/* Look up an application to handle this URL scheme.
* We get a dictionary containing all apps for the scheme.
* FIXME ... we just use the last app in the dictionary,
* but we really ought to have some way of saying which we want.
*/
map = [applications objectForKey: @"GSSchemesMap"];
appName = [map objectForKey: [[url scheme] lowercaseString]];
map = [map objectForKey: [[url scheme] lowercaseString]];
appName = [[map allKeys] lastObject];
if (appName != nil)
{
NSString *urlString = [url absoluteString];