mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Corrected handling of pasteboard data of type NSFilenamesPboardType.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17015 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
722091ab9d
commit
a50f7b9a5c
3 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-06-25 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSImage.m (initWithPasteboard:):
|
||||
* Source/NSView.m (dragFile:fromRect:slideBack:event:):
|
||||
Corrected handling of pasteboard data of type NSFilenamesPboardType.
|
||||
|
||||
2003-06-24 01:05 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSTabViewItem.m (-drawLabel:inRect:): Update for change
|
||||
|
|
|
@ -400,9 +400,12 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
[self addRepresentations: reps];
|
||||
else
|
||||
{
|
||||
NSString* file = [pasteboard propertyListForType: NSFilenamesPboardType];
|
||||
NSArray *array = [pasteboard propertyListForType: NSFilenamesPboardType];
|
||||
NSString* file;
|
||||
|
||||
if (file != nil || ![self _loadFromFile: file])
|
||||
if ((array == nil) || ([array count] == 0) ||
|
||||
(file = [array objectAtIndex: 0]) == nil ||
|
||||
![self _loadFromFile: file])
|
||||
{
|
||||
RELEASE(self);
|
||||
return nil;
|
||||
|
|
|
@ -2920,7 +2920,7 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
|
|||
|
||||
[pboard declareTypes: [NSArray arrayWithObject: NSFilenamesPboardType]
|
||||
owner: self];
|
||||
if (![pboard setPropertyList: filename
|
||||
if (![pboard setPropertyList: [NSArray arrayWithObject: filename]
|
||||
forType: NSFilenamesPboardType])
|
||||
return NO;
|
||||
|
||||
|
|
Loading…
Reference in a new issue