mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 05:30:54 +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
95603a951c
commit
a05ab38af0
3 changed files with 12 additions and 4 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,6 +1,14 @@
|
||||||
2012-04-24 Fred Kiefer <FredKiefer@gmx.de>
|
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>.
|
Patch by Andreas Schik <andreas.schik@web.de>.
|
||||||
|
|
||||||
2012-04-19 Riccardo Mottola <rm@gnu.org>
|
2012-04-19 Riccardo Mottola <rm@gnu.org>
|
||||||
|
|
|
@ -2292,8 +2292,6 @@ description, [cmd stringByDeletingLastPathComponent]);
|
||||||
*/
|
*/
|
||||||
- (void) writeToPasteboard: (NSPasteboard *)pasteBoard
|
- (void) writeToPasteboard: (NSPasteboard *)pasteBoard
|
||||||
{
|
{
|
||||||
[pasteBoard declareTypes: [NSArray arrayWithObject: NSURLPboardType]
|
|
||||||
owner: nil];
|
|
||||||
[pasteBoard setString: [self absoluteString]
|
[pasteBoard setString: [self absoluteString]
|
||||||
forType: NSURLPboardType];
|
forType: NSURLPboardType];
|
||||||
}
|
}
|
||||||
|
|
|
@ -953,7 +953,9 @@ static NSString *_rootPath = @"/";
|
||||||
* Try any OpenURL service available.
|
* Try any OpenURL service available.
|
||||||
*/
|
*/
|
||||||
pb = [NSPasteboard pasteboardWithUniqueName];
|
pb = [NSPasteboard pasteboardWithUniqueName];
|
||||||
[url writeToPasteboard: pb];
|
[pb declareTypes: [NSArray arrayWithObject: NSURLPboardType]
|
||||||
|
owner: nil];
|
||||||
|
[url writeToPasteboard: pb];
|
||||||
return NSPerformService(@"OpenURL", pb);
|
return NSPerformService(@"OpenURL", pb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue