Re: LOCATING MEDIA FILES IN MACINTOSH
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