views:

78

answers:

1

I'm creating an iTunes clone in Cocoa (don't ask why, it's not evil) and I want to be able to sync my iPod with it. This means: music, photos, videos and podcasts. I couldn't really find anything, since Google only shows articles about iPod touch and iPhone programming, but I'm actually creating a desktop application for Mac OS X, and I also want to be able to sync click-wheel iPods.

Is there an API or should I read and write directly to the USB port?

Can anyone help me? Thanks

+1  A: 

Apple jealously guards sync capability and doesn't provide an API. As far as I know you can't even use iTunes automation to make it do the syncing for you.

Ever-resourceful, the open source community has reverse-engineered the protocols and the libimobiledevice project exists to provide a sync library for Linux-based systems. I don't believe the library will build on OSX -- it relies on the Linux USB architecture -- but if you need to write your own sync library, it will provide you with a good starting point to understand the protocol and device workings.

Dan Story
=\ it says: 'Tested with iPhone/iPod Touch 1G, 2G and 3G/3GS running up to firmware 3.1.3.' Does this mean it won't do anything with click-wheel iPods? Or do those iPods use the same protocols?
Time Machine
Koning Baard XIV: The iPods run a different OS, so I would guess that they do have a different protocol or protocols from the iPhone-OS family.
Peter Hosey
Sorry, I had forgotten that the newer library didn't support the older iPods. Older iPod support can be found in libipod: http://libipod.sourceforge.net/
Dan Story