Re: How to search for mop3 files, retrieve those file and play these file into apps
Re: How to search for mop3 files, retrieve those file and play these file into apps
- Subject: Re: How to search for mop3 files, retrieve those file and play these file into apps
- From: Graham Cox <email@hidden>
- Date: Thu, 5 Mar 2009 23:29:02 +1100
On 05/03/2009, at 11:13 PM, haresh vavdiya wrote:
enumeratorAtPath is not helpful because we don't know exact path...
we have to search in whole directories....is there any another way
to do that.
Umm... well a path of "/" represents the entire volume...
To be honest scanning the whole disk is a poor strategy. Music files
are usually found in a few expected places, try looking there (like "~/
Music") or by querying the location of the iTunes music folder from
its plist. If you do scan the whole disk, expect it to take many, many
minutes. As another poster suggested, the Spotlight APIs might help
you because they've already indexed the disk and know where files of a
given type are.
--Graham
_______________________________________________
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