[go: nahoru, domu]

Skip to content

MattRyder/AcornOSX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AcornOSX

A Cocoa Library for parsing "iTunes Music Library.xml" files - (https://github.com/MattRyder/AcornOSX)

####To Build:

  • Open AcornOSX.xcodeproj into XCode
  • Build the project from the IDE.

####To Use:

  • Add as a Framework reference to your project

####Examples:

//
// Parse and return a list of Song objects from the Library XML
//
- (NSMutableArray *)parseAndReturnSongs
{
   //URL is statically defined here, can be used with NSOpenPanel to get a file location
   NSURL *location = [NSURL fileURLWithPath:@"/Users/USERFOO/Music/iTunes/iTunes Music Library.xml"];
   Library *library = [[Library alloc] initWithLibrary:location];
   
   if([library parseLibrary]) {
      return library.Songs; 
   } else {
      NSLog(@"%@", @"Something went wrong and parseLibrary returned NO");
      return NULL;
   }
}

About

iTunes Music Library.xml Parsing for Mac OS X

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published