Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 14 in printed book and digital formats -- plus a one-year subscription so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 2.1

REVIEW

iTunesLibraryParser

Issue: 2.1 (August/September 2003)
Author: Greg Fiumara
Article Description: No description available.
Article Length (in bytes): 4,514
Starting Page Number: 8
Article Number: 2102
Related Web Link(s):

http://homepage.mac.com/timlenertz

Excerpt of article text...

Integration is the latest developer buzz since Cocoa, at least it seems that way with the release of Apple's iLife. All four of the applications (iTunes, iMovie, iPhoto, iDVD) are interconnected so that one application can access data from the other. Integration is nothing new to the Mac, as with the release of Mac OS X v. 10.2, the Address Book application's data could be accessed from any application. Apple iSync provides for a way to synchronize the information from Address Book and Apple iCal to various digital devices. Countless applications allow Internet integration and importation of competitor product formats. Web browsers provide "auto-fill" features. Now, with iTunesLibraryParser 1.0, a new set of classes from DynamAPP, REALbasic developers are one step closer to iTunes integration in their own projects.

iTunesLibraryParser is compatible with REALbasic versions 4.5 and up, but not without some changes. To run the project under REALbasic 5, one must make some variable name changes. This is because some of the variable names iTunesLibraryParser uses are reserved words in REALbasic 5. The project runs without a problem under REALbasic 4.5.

The process iTunesLibraryParser uses to integrate with iTunes is very simple. iTunesLibraryParser uses Amar Sagoo's XML Toolkit to parse the iTunes Music Library.xml file (located in ~/Music/iTunes/). The next step is to decode the encoded URL reference to each audio file. This step uses the URLCodec plugin from Taaki Mizuno. However, the enitire routine is lengthy. For example, a 560 KB XML file with 409 songs required 1:07 minutes to parse when the example was compiled with REALbasic 5. The process was much longer when using REALbasic 4.5. DynamAPP recognizes this in the well-written documentation file included in the free download. There are other helpful items contained in the documentation, such as a reference guide for all events, methods, and properties included in the classes as well as a "how to" section. In addition to detailed documentation, iTunesLibraryParser comes with a completely commented example project.

...End of Excerpt. Please purchase the magazine to read the full article.