Re: LOCATING MEDIA FILES IN MACINTOSH
Re: LOCATING MEDIA FILES IN MACINTOSH
- Subject: Re: LOCATING MEDIA FILES IN MACINTOSH
- From: Kirk Kerekes <email@hidden>
- Date: Fri, 7 Jan 2011 12:40:13 -0600
I may have missed it, but I don't believe anyone has mentioned my first choice in this sort of task:
-- the programmatic interface to Spotlight:
<http://goo.gl/JGgVQ> "Introduction to Spotlight Query Programming Guide"
combined with UTIs:
<http://goo.gl/9AxdT> "Introduction to Uniform Type Identifiers Overview"
Because SpotLight uses a prebuilt index, it will trounce pretty much any other search technique.
UTIs let you specify _classes_ of filetypes (like "movie" or "audio") rather than bogging down in endless detail that needs perpetual updating.
No search scheme can guarantee 100% perfection, but using system resources instead of rolling your own lets you effortlessly benefit from Apple's continued stepwise refinement.
_______________________________________________
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