Re: Search Hard Drive
Re: Search Hard Drive
- Subject: Re: Search Hard Drive
- From: Mark Davis <email@hidden>
- Date: Sat, 15 Nov 2003 17:52:46 -0400
Oh, I see. So if I wanted to search for files very quickly by name I
should use what find command built-in to Mac OS X? Which file in
/usr/bin should I be using?
On 15-Nov-03, at 5:27 PM, Matthew Cox wrote:
On Saturday, November 15, 2003, at 03:48 PM, Mark Davis wrote:
How can I search the hard drive using Searchkit, I didn't find the
documentation very useful and I need to be able to search the hard
drive quickly in my application.
Search kit isn't really about finding files per se, more for searching
within a document: quoting the SearchKit reference: "Search Kit is the
Mac OS X engine that provides fast content searching in Finder, Address
Book, Apple Help, and Mail.".
If you're looking for files, I'd recommend you use the excellent find
command built into mac os x, by which I mean the one in /usr/bin, not
in the File menu of the finder. Use NSTask and NSPipe to connect to it.
IMHO, it is very fast, and it also has the advantage of being executed
as a separate task, so you don't complicate your application with
threading.
See the tutorials Wrapping Unix Commands
(http://cocoadevcentral.com/articles/000025.php) and Wrapping Unix
Commands II (http://cocoadevcentral.com/articles/000031.php). Try man
find for information on this tool.
Good luck,
Matthew.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.