• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Drag & Drop stall
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Offscreen drawing again ...
  • Next by Date: Switching NSViews 2
  • Previous by thread: Switching NSViews
  • Next by thread: Switching NSViews 2
  • Index(es):
    • Date
    • Thread