Re: Scripting Bridge question
Re: Scripting Bridge question
- Subject: Re: Scripting Bridge question
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 15 Nov 2007 14:38:38 -0800
On 11/15/07, email@hidden <email@hidden> 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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden