- Timestamp:
- 04/26/09 17:24:48 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/CoreData/SapphireFrappliance/Players/SapphireMedia.m
r696 r827 20 20 21 21 #import "SapphireMedia.h" 22 #import "NSImage-Extensions.h" 22 23 #import <SapphireCompatClasses/SapphireFrontRowCompat.h> 23 24 … … 40 41 { 41 42 [imagePath release]; 43 [coverart release]; 42 44 [super dealloc]; 43 45 } … … 64 66 } 65 67 68 - (void)setImage:(NSImage *)image 69 { 70 [coverart release]; 71 coverart = [image retain]; 72 } 73 66 74 - (id)mediaType 67 75 { … … 79 87 - (id)coverArt 80 88 { 81 return [SapphireFrontRowCompat imageAtPath:imagePath]; 89 if (imagePath) 90 return [SapphireFrontRowCompat imageAtPath:imagePath]; 91 92 if (coverart) 93 return [SapphireFrontRowCompat coverartAsImage:[coverart asImageRef]]; 94 95 return nil; 82 96 } 83 97
