Re: Spotlight and Leopard
Re: Spotlight and Leopard
- Subject: Re: Spotlight and Leopard
- From: Leonardo Borsten <email@hidden>
- Date: Sun, 29 Mar 2009 20:51:37 -0400
The function that you probably need is FSCatalogSearch. It's a very
fast function and it returns, among other data, a pointer to an array
of FSRefs of the found files.
You can put this function inside a function that iterates across all
mounted volumes, using FSGetVolumeInfo.
Examples can be found in the GrabBag sample code:
http://developer.apple.com/samplecode/GrabBag/listing1.html
Leonardo Borsten
On Mar 29, 2009, at 6:55 PM, Pierce Freeman wrote:
I'm not aware of that being removed (and typically I would be)
It's in the headers on Leopard. That example does have an issue in
that it doesn't link against Carbon. But if you do that, it compiles
without warning, and clicking on the search button brings up the
current Leopard HI for searching.
That makes more sense now - I was wondering why that totally
disappeared. ;)
Due to problems with Spotlight not searching other drives on
default, I have
decided on integrating the UNIX find command. Please reply with any
ideas
you have regarding this, including (please) something about saving the
locations of the files that it found to an array.
_______________________________________________
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
_______________________________________________
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