realbasic-nug
[Top] [All Lists]

What is the IN THING as far as searching files

To: Realbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: What is the IN THING as far as searching files
From: Garth Hjelte <garth@chickensys.com>
Date: Thu, 03 May 2012 09:38:13 -0500
Authentication-results: mx.google.com; spf=pass (google.com: domain of realbasic-nug-bounces@lists.realsoftware.com designates 74.124.194.228 as permitted sender) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; dkim=neutral (body hash did not verify) header.i=@chickensys.com
Delivered-to: listarchive@realsoftware.com
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chickensys.com; s=default; h=Content-Type:Mime-Version:References:In-Reply-To:Subject:From:To:Date; bh=fWcxa8NNEa/Sv+uV/c1vcVe/0/FDR7dsOPXoAeo5bOI=; b=nehx1kxxBzRVqSeAzsbtvoJtcbKGh+f0dDEvu/TiCZytSLQ8jPSE3kvSof3zvylhN0tvep75Du5d/X2+Yi2LcWpzHIP/evebuukYDOOzMIx+2X+XExXQpN8KbYkiD6un;
In-reply-to: <C57FAEFA-F59E-453B-9DCE-CEEC84101652@gmail.com>
References: <C57FAEFA-F59E-453B-9DCE-CEEC84101652@gmail.com>
Reply-to: Realbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
OK, I'm sure on Mountain Lion we'll be forced to use Gatekeeper and pay Apple 
an extra $1,000,000 to search for files on a HFS drive, but... =)

What is the IN THING - the proper way, to be admitted to the country club - to 
search for files on a hard drive these days? My gut tells me that I'd like to 
use FSCatalogSearch, it's not deprecated, it's a actual Apple API, whereas the 
thing that turns me off about Spotlight is that it's an indexed thing as part 
of the OS, whereas an HFS drive by definition and design HAS it's own indexing 
and database (if you can call it that). Spotlight also seems to be optional or 
user-driven, not always completely under the hood updated instantly like the 
HFS drive itself has to be. Am I right, wrong, deluded?

CatSearches (talking about the new kind FSCatalogSearch, not PBCatSearch) were 
always sported to be extremely fast (not just fast - extremely fast), though I 
never got the results others did - like on a 1TB drive, maybe 60% full, it 
takes 20-25 seconds to find a file, whereas the reports I heard were under 5 
seconds. But I still like it.

(I'm actually doing this in XCode, so perhaps I'm slightly OT)

But what is the enlightened way to do this? I mean, the one that Apple won't 
slash in the middle of the night (re: future OS)? Is FSCatalogSearch still a 
wonderful thing?

Garth Hjelte
Sampler User


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>