• 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: How to search for mop3 files, retrieve those file and play these file into apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to search for mop3 files, retrieve those file and play these file into apps (From: haresh vavdiya <email@hidden>)
 >Re: How to search for mop3 files, retrieve those file and play these file into apps (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Odd crash-loading AppleScripts
  • Next by Date: Re: Odd crash-loading AppleScripts
  • Previous by thread: Re: How to search for mop3 files, retrieve those file and play these file into apps
  • Next by thread: Re: How to search for mop3 files, retrieve those file and play these file into apps
  • Index(es):
    • Date
    • Thread