• 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
Searching Files on MacOS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Searching Files on MacOS X


  • Subject: Searching Files on MacOS X
  • From: Lorenzo <email@hidden>
  • Date: Mon, 18 Aug 2003 19:30:12 +0200

Hi list,
do you know why the Finder performs a search much much faster than my Cocoa
application? For example, if I search for all the filenames ending with
".mov", the Finder finds all the 72 ".mov" files in my boot disk in 8
seconds. My application takes 2 minutes...!
I am using MacOS X 10.2.6 and basically iterate through the following array.
Please note that even if I used NSDirectoryEnumerator the speed is the same.

NSArray *dirContent = [manager directoryContentsAtPath:mainFolder];

What is the fastest way to search for files?
Thank you.


Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: Searching Files on MacOS X
      • From: Michael Tsai <email@hidden>
    • Re: Searching Files on MacOS X
      • From: "Alastair J.Houghton" <email@hidden>
  • Prev by Date: Webkit question
  • Next by Date: Re: Using Distributed Objects in an Internet-Game
  • Previous by thread: Webkit question
  • Next by thread: Re: Searching Files on MacOS X
  • Index(es):
    • Date
    • Thread