Re: Drag and drop problems!
Re: Drag and drop problems!
- Subject: Re: Drag and drop problems!
- From: Matthew Formica <email@hidden>
- Date: Wed, 27 Jun 2001 11:15:15 -0700
You're not doing anything wrong. You've found a bug: you currently can't
drag multiple files from Cocoa to Carbon (all though the reverse direction
works). You can also see this bug at work by trying to drag multiple files
from the files list in Project Builder out to the desktop - only the first
one gets copied. This is already bug #2679296 in our bug tracking system,
so no need to file another bug.
Matthew Formica
Apple DTS Engineer - Dev Tools and Cocoa
email@hidden
on 6/27/01 2:42 AM, Steve Gehrman at email@hidden remarked:
>
When I drag and drop to my own application or another Cocoa application,
>
everything works great. When I drag and drop to iTunes or the Finder, I
>
have a problem.
>
>
When I select multiple items (muliple mp3 files, for example) in my
>
application,and try to drop them on iTunes, only the first item actually
>
gets dropped.
>
>
Here's my code... just sending an array of paths with
>
NSFilenamesPboardType
>
>
NSArray* tTypes;
>
NSMutableArray* pathsArray = [NSMutableArray array];
>
int i, cnt = [items count];
>
for (i=0;i<cnt;i++)
>
{
>
FileSystemItem *item = [items objectAtIndex:i];
>
[pathsArray addObject:[item path]];
>
}
>
>
tTypes = [NSArray arrayWithObjects:NSFilenamesPboardType, nil];
>
[pboard declareTypes: tTypes owner:nil];
>
>
[pboard setPropertyList: pathsArray forType: NSFilenamesPboardType];
>
>
steve
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev