Retrieve the properties of the media in the user’s iTunes library.
The iTunes Library framework provides facilities for retrieving the properties of media items in a user’s iTunes library. This framework was designed to replace the iTunes XML file that developers query to fetch track and playlist metadata. iTunes library access is read-only.
To use this framework, create an
ITLibrary object by calling the
library class method, as shown in Listing 1. You can interrogate the instance returned to obtain its properties and the properties of its media items. For example:
To use the iTunes Library framework in your project, you add the iTunes Library framework (located at
/Library/Frameworks/i) to the project. You also edit the build setting
FRAMEWORK_SEARCH_PATHS to include
/Library/Frameworks/i. The iTunes Library framework is available to users running iTunes v11.0 or above.