mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:10:37 +00:00
* 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:
parent
ea5e2a3c97
commit
74139f4848
3 changed files with 12 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue