• 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: Rush Manbert <email@hidden>
  • Date: Tue, 24 Jul 2007 11:01:33 -0700

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.

Thanks for the help.


There are a couple of file/path searching classes developed on top of Boost::filesystem. They aren't released with the Boost libraries, but are available in the vault. Go to www.boost.org and click on the "Vault Files" link.


I used one of these, but it's been about a year now and I don't remember the details. Contact me off list if you want to pursue it and I'll try to remember what I did. :-)

- Rush
_______________________________________________

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


References: 
 >Complete Filename Searching (From: Thom McGrath <email@hidden>)

  • Prev by Date: Re: NSLog preventing a crash?
  • Next by Date: Re: Saving images to MySQL
  • Previous by thread: Re: Complete Filename Searching
  • Next by thread: Multiple sliders updating the same text field
  • Index(es):
    • Date
    • Thread