* Source/NSPasteboard.m (NSURL-writeToPasteboard:): Revert the

last change.
* Source/NSWorkspace.m (-openURL:): Declare the URL pasteboard
type here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35110 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2012-04-24 16:54:53 +00:00
parent ea5e2a3c97
commit 74139f4848
3 changed files with 12 additions and 4 deletions

View file

@ -953,7 +953,9 @@ static NSString *_rootPath = @"/";
* Try any OpenURL service available.
*/
pb = [NSPasteboard pasteboardWithUniqueName];
[url writeToPasteboard: pb];
[pb declareTypes: [NSArray arrayWithObject: NSURLPboardType]
owner: nil];
[url writeToPasteboard: pb];
return NSPerformService(@"OpenURL", pb);
}
}