mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Declare types when writing to pasteboard
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17059 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
17d4b32bba
commit
94b97f00b8
1 changed files with 2 additions and 0 deletions
|
@ -312,11 +312,13 @@ static NSString *namePrefix = @"NSTypedFilenamesPboardType:";
|
|||
if (data != nil)
|
||||
{
|
||||
tmp = [NSPasteboard pasteboardWithUniqueName];
|
||||
[tmp declareTypes: [NSArray arrayWithObject: fromType] owner: nil];
|
||||
[tmp setData: data forType: fromType];
|
||||
}
|
||||
else if (file != nil)
|
||||
{
|
||||
tmp = [NSPasteboard pasteboardWithUniqueName];
|
||||
[tmp declareTypes: [NSArray arrayWithObject: fromType] owner: nil];
|
||||
[tmp writeFileContents: file];
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue