• 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: John Stiles <email@hidden>
  • Date: Tue, 24 Jul 2007 10:22:52 -0700


On Jul 24, 2007, at 8:10 AM, Uli Kusterer wrote:

On 24.07.2007, at 13:11, Stephane Sudre wrote:
The FS API in Carbon is supposed to be the fastest one.

I've wrapped the Carbon directory enumerator stuff in my UKDirectoryEnumerator. Though you won't be happy if you really want to search the whole computer every time. I don't think there is an API that has enough performance to do that. You'll want to cache search results and then use kqueue or something like that to check whether they need to be updated.

AFAIK kqueue doesn't let you monitor nested folders—you can monitor one directory, that's it. Trying to create a kqueue for every folder inside /Library might be a little overkill :)
There are private SPIs which let you monitor for all file system changes, but they require admin access and it's all changing in Leopard anyway. (The Leopard API is public, documented and doesn't require admin access, but I can't say more than that because it's under NDA.)


_______________________________________________

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>)
 >Re: Complete Filename Searching (From: Stephane Sudre <email@hidden>)
 >Re: Complete Filename Searching (From: Uli Kusterer <email@hidden>)

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