* 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

@ -1,6 +1,14 @@
2012-04-24 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSPasteboard.m (NSURL-writeToPasteboard:): Declare the type.
* Source/NSPasteboard.m (NSURL-writeToPasteboard:): Revert the
last change.
* Source/NSWorkspace.m (-openURL:): Declare the URL pasteboard
type here.
Change suggested by Wolfgang Lux <wolfgang.lux@gmail.com>.
2012-04-24 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSPasteboard.m (NSURL-writeToPasteboard:): Declare the type.
Patch by Andreas Schik <andreas.schik@web.de>.
2012-04-19 Riccardo Mottola <rm@gnu.org>

View file

@ -2292,8 +2292,6 @@ description, [cmd stringByDeletingLastPathComponent]);
*/
- (void) writeToPasteboard: (NSPasteboard *)pasteBoard
{
[pasteBoard declareTypes: [NSArray arrayWithObject: NSURLPboardType]
owner: nil];
[pasteBoard setString: [self absoluteString]
forType: NSURLPboardType];
}

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);
}
}