On 11 Jun '08, at 6:59 AM, Nicolas Goles wrote:

Hi, I want to develop a Cocoa Application to manage an embed Cover Art files to Mp3's. The thing is that I don't know how to achieve this, or where to read about how to do it. I asked in several places / googled a lot and ended
up here.

iTunes stores cover art in MP3 files in a particular ID3 tag <http://www.id3.org/ >. There's a Mac library for manipulating these tags: <http://drewfamily.homemail.com.au/Cocoa_-_ID3Tag_framework.html >

In AAC files, there's a particular QuickTime 'atom' (AAC uses the QT movie file format) for cover art. The QT APIs can access it, at least for reading, but writing looks considerably harder.

A newer wrinkle is that when iTunes 7 auto-downloads cover art, it for some reason stores it outside the files, in a subdirectory of the iTunes Music folder. The stuff in there is rather cryptic, but there've been a few blog posts I've found that decipher it:
http://www.command-tab.com/2006/09/12/itunes-art-redux/
http://www.falsecognate.org/2007/01/deciphering_the_itunes_itc_fil.php

You can also send AppleEvents (via AppleScript or the Scripting Bridge) to iTunes to get or set the artwork for any track. I think that's been covered on this list in the past few months, so check the archives.

Honestly, by far the easiest way to read cover art is to require 10.5 and just use the QuickLook framework to give you a thumbnail of the file; although I suspect this will limit the resolution you can get. And it's read-only. Matt Gemmell wrote a little snippet showing how to do it:
http://mattgemmell.com/files/source/nsimage_quicklook.zip

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to