Re: Complete Filename Searching
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