Drag & Drop stall
Drag & Drop stall
- Subject: Drag & Drop stall
- From: Mike Vannorsdel <email@hidden>
- Date: Fri, 08 Feb 2002 16:28:46 -0700
I'm getting a lengthy stall in my view's draggingEntered: method. Here's a
sample clip of the method:
- (unsigned int)draggingEntered:(id <NSDraggingInfo>)sender
{
NSPasteboard * pboard=[sender draggingPasteboard];
if([[pboard types] indexOfObject:NSFilenamesPboardType]!=NSNotFound)
{
NSArray * paths=[pboard propertyListForType:NSFilenamesPboardType];
//ect
The stall comes from propertyListForType:. When there are more than 1 files
being dragged to the view, propertyListForType: takes upwards of 1.5 seconds
to return the array. Is there a faster way to get the dragged paths that
doesn't suffer this stall? And what's the cause of this stall?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.