• 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: Alastair Houghton <email@hidden>
  • Date: Fri, 7 Jan 2011 12:19:43 +0000

On 6 Jan 2011, at 20:54, Abhinav Tyagi wrote:

> 1) I need an efficient approach to solve this problem using Cocoa or C++.
> (very Important)
> 2) How will check a file if its a valid media file or data file. Like we can
> have ".dat" files that are video files but data files can also have ".dat" extension. not much
> significant. Is there api that can tell whether a file is media file or not? (not soooo
> important).

Why not use NSMetadataQuery to get Spotlight to search for you?  If you search for Technical Note TN2192 in the documentation, you'll find some sample code.  The Spotlight Overview and Spotlight Query Programming Guide look useful too.

Kind regards,

Alastair.

--
http://alastairs-place.net




_______________________________________________

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

  • Follow-Ups:
    • Re: LOCATING MEDIA FILES IN MACINTOSH
      • From: "John C. Daub" <email@hidden>
References: 
 >LOCATING MEDIA FILES IN MACINTOSH (From: Abhinav Tyagi <email@hidden>)

  • Prev by Date: Re: [SOLVED] Unresponsive CFMessagePort
  • Next by Date: Change the NSPreferencePane window size programmatically
  • Previous by thread: Re: LOCATING MEDIA FILES IN MACINTOSH
  • Next by thread: Re: LOCATING MEDIA FILES IN MACINTOSH
  • Index(es):
    • Date
    • Thread