Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This is a git-svn fork of the EyeTunes project with support for iTunes 10.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Examples
Octocat-spinner-32 EyeTunes.xcodeproj
Octocat-spinner-32 Source
Octocat-spinner-32 iTunes
Octocat-spinner-32 .gitignore
Octocat-spinner-32 ChangeLog
Octocat-spinner-32 EyeTunes_Prefix.pch
Octocat-spinner-32 Info.plist
Octocat-spinner-32 README.md
Octocat-spinner-32 iTunes.py
Octocat-spinner-32 license
README.md

EyeTunes framework

EyeTunes.framework is a Cocoa Framework that abstracts away all the ugly Carbon Apple Events magic and allows you to directly control iTunes from any Cocoa Application.

This is a fork of the original EyeTunes project with support for iTunes 10 and other updates.

Features

  • AppStore compliant.
  • Get all references to iTunes playlists, tracks and album art.
  • Add playlists, update playlists and delete tracks.
  • Set any writable fields that iTunes exposes such as Track name, artwork and much more.
  • Control iTunes and select playlists and tracks by using either track filenames or database ids.
  • Search the iTunes library just like the search box does.
  • Extract persistent ID and fetch tracks using such ids.
  • Launch and quit iTunes.

Example

To grab an NSImage from the current playing track (say you're implementing some new album art viewier), you can use this simple snippet:

#import <EyeTunes/EyeTunes.h>

- (NSImage *)getArtworkOfPlayingSong{
    EyeTunes *eyetunes = [EyeTunes sharedInstance];
    ETTrack *currentTrack = [eyetunes currentTrack];
    if(currentTrack){
        NSArray *artwork = [currentTrack artwork];
        if([artwork count]){
            return [artwork objectAtIndex:0];
        }
    }
    return nil;
}
Something went wrong with that request. Please try again.