Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 27th, 2012  |  syntax: None  |  size: 0.59 KB  |  views: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. NSImage *artwork;
  2.                
  3.                 for (int i=0; i<[[iTunes.currentTrack artworks] count]; i++){
  4.                     iTunesArtwork *iTunesArtwork = [[iTunes.currentTrack artworks] objectAtIndex:i];
  5.                     artwork = [iTunesArtwork data];
  6.                    
  7.                     if ([artwork isKindOfClass:[NSImage class]]){
  8.                         break;
  9.                     }
  10.                 }
  11.                
  12.                 if (artwork != nil && [artwork isKindOfClass:[NSImage class]]){
  13.                     [_musicImageView setImage:artwork];
  14.                 }
clone this paste RAW Paste Data