* 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:
fredkiefer 2012-04-24 16:54:53 +00:00
parent 95603a951c
commit a05ab38af0
3 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,11 @@
2012-04-24 Fred Kiefer <FredKiefer@gmx.de>
* 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.

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