FROM : Shawn Erickson
DATE : Thu Nov 15 23:38:38 2007
On 11/15/07, <email_removed> <<email_removed>> wrote:
> Correction: has, you were absolutely right. The NSImage can be used
> as-is. The working code is so simple I can't believe it. For anyone
> interested:
>
> iTunesArtwork *artwork = [[current artworks] objectAtIndex:0];
> [myImageView setImage:(NSImage *)[artwork data]];
You shouldn't need the (NSImage*) cast above assuming property
definition lists NSImage* as the type (or id).
-Shawn
DATE : Thu Nov 15 23:38:38 2007
On 11/15/07, <email_removed> <<email_removed>> wrote:
> Correction: has, you were absolutely right. The NSImage can be used
> as-is. The working code is so simple I can't believe it. For anyone
> interested:
>
> iTunesArtwork *artwork = [[current artworks] objectAtIndex:0];
> [myImageView setImage:(NSImage *)[artwork data]];
You shouldn't need the (NSImage*) cast above assuming property
definition lists NSImage* as the type (or id).
-Shawn
| Related mails | Author | Date |
|---|---|---|
| slasktrattenator | Nov 15, 03:26 | |
| slasktrattenator | Nov 15, 10:49 | |
| Andrew Kimpton | Nov 15, 16:37 | |
| slasktrattenator | Nov 15, 17:39 | |
| Jason Ketterman | Nov 15, 18:50 | |
| slasktrattenator | Nov 15, 19:40 | |
| has | Nov 15, 21:46 | |
| has | Nov 15, 21:46 | |
| slasktrattenator | Nov 15, 23:06 | |
| slasktrattenator | Nov 15, 23:33 | |
| Shawn Erickson | Nov 15, 23:35 | |
| Shawn Erickson | Nov 15, 23:38 | |
| slasktrattenator | Nov 15, 23:43 |






Cocoa mail archive

