Coder Social home page Coder Social logo

chemicalweb / eyetunes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kgn/eyetunes

1.0 2.0 0.0 659 KB

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

Home Page: http://code.google.com/p/eyetunes/

License: MIT License

eyetunes's Introduction

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;
}

eyetunes's People

Contributors

kgn avatar clee avatar

Stargazers

Chemicalweb avatar

Watchers

Chemicalweb avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.