• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: LOCATING MEDIA FILES IN MACINTOSH
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSDictionary key types
  • Next by Date: Re: Change the NSPreferencePane window size programmatically
  • Previous by thread: Re: LOCATING MEDIA FILES IN MACINTOSH
  • Next by thread: Troubleshooting CFMessagePort
  • Index(es):
    • Date
    • Thread