Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching for files



Hi Mark,

You'll want to use PBCatalogSearch and friends.  The PBCatalogSearch
routines rapidly traverse the catalog B-Tree looking for matches to your
criteria.

You may also want to take a look at the GrabBag sample which uses
PBCatalogSearchAsync.
http://developer.apple.com/samplecode/GrabBag/

It's an old sample, but the concepts still apply.
Deric Horn
Mac OS X Application Technologies Evangelist
Apple Worldwide Developer Relations
email@hidden


> How would I go about searching an entire volume for files with a given
> creator/filetype combination, or for files with a given extension?
> This needs to work on 10.2.0 or later, so I can't do anything fancy
> with Spotlight.  The current code uses Search.c from MoreFiles, but
> MoreFilesX doesn't have a modern counterpart.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Searching for files (From: "Mark Wagner" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.