mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
bc7a00e00b
commit
bf45641a25
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue