views:

52

answers:

1

Hi all i am writing one iphone application to download the songs and store it in my application. Is there any framework for this?. Can you please help me how to get started with it. Thanks in advance.

A: 

Are you trying to copy files from the user's home folder to the iPhone?

You can parse the iTunes Music Library.xml file for file locations. For example, this is likely the root folder of the average iTunes user's music folder:

<key>Music Folder</key><string>file://localhost/Users/username/Music/iTunes/iTunes%20Music/</string>

Then you'd need to set up some kind of service on the end user's computer, such as a web service, in order to copy data up to the iPhone. You could then write a RESTful client to pull data over.

It's a lot of work, but doable. As you're basically duplicating iTunes, you would also be running the risk that Apple will reject your app.

Alex Reynolds