• 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
EnumeratorAtPath and duplicate files during drag to open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EnumeratorAtPath and duplicate files during drag to open


  • Subject: EnumeratorAtPath and duplicate files during drag to open
  • From: Trygve Inda <email@hidden>
  • Date: Thu, 04 Feb 2010 05:06:48 +0000
  • Thread-topic: EnumeratorAtPath and duplicate files during drag to open

If a user drags 3 Finder objects to my "file processor" app...

DirectoryA
FileA
FileB

And FileA is in the directory tree below DirectoryA, what is the best way to
avoid processing the file twice?

When I get the array of paths in my drop handler, when I see the directory,
I use EnumeratorAtPath to process the tree, but don't want to re-process
files.

This becomes a real issue if someone drops DirectoryA and DirectoryB if
DirectoryB is in the tree below DirectoryA... Since a bunch of files could
be re-processed.

Do I just need to keep a temporary array of paths that I have processed and
search it for each file... Could be a lot of searching if the user drops the
entire Documents folder.

Thoughts?

Trygve


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: EnumeratorAtPath and duplicate files during drag to open
      • From: Jerry Krinock <email@hidden>
    • Re: EnumeratorAtPath and duplicate files during drag to open
      • From: Jens Alfke <email@hidden>
  • Prev by Date: IKImageBrowserView & IKImageView subclasses not getting called
  • Next by Date: Re: Help with NSData dataWithContentsOfURL
  • Previous by thread: Re: IKImageBrowserView & IKImageView subclasses not getting called
  • Next by thread: Re: EnumeratorAtPath and duplicate files during drag to open
  • Index(es):
    • Date
    • Thread