• 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
Re: Complete Filename Searching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Complete Filename Searching


  • Subject: Re: Complete Filename Searching
  • From: Stephane Sudre <email@hidden>
  • Date: Tue, 24 Jul 2007 13:11:04 +0200


On 24 juil. 07, at 12:40, Thom McGrath wrote:

Hello all,

I wouldn't consider myself a Cocoa newbie, but I know I still have much to learn. I have come across a question I cannot find an answer to using the archives or other support sites. Hopefully somebody can point me in the right direction.

I need to do a filename search of the entire system. Spotlight leaves out many directories, such as ~/Library, which I do need to search. As an example, searching for SubEthaEdit should return /Applications, ~/Library/Preferences/de.codingmonkeys.SubEthaEdit.plist, ~/Application Support/SubEthaEdit... and so. You get the idea.

I have tried using NSDirectoryEnumerator, but as I expected, it's slow. Actually, slow would be an understatement - for this case, it's completely intolerable.

So is there another API I can use? Or a way to ask Spotlight to search everything - though I think that's impossible because I believe Spotlight does not index the special directories.

The FS API in Carbon is supposed to be the fastest one.

fts is fast too but slower than Carbon APIs from what I've read in previous posts on another mailing lists.


_______________________________________________

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: Complete Filename Searching
      • From: Uli Kusterer <email@hidden>
References: 
 >Complete Filename Searching (From: Thom McGrath <email@hidden>)

  • Prev by Date: Complete Filename Searching
  • Next by Date: Re: NSLog preventing a crash?
  • Previous by thread: Complete Filename Searching
  • Next by thread: Re: Complete Filename Searching
  • Index(es):
    • Date
    • Thread