Re: Scripting Bridge question
Re: Scripting Bridge question
- Subject: Re: Scripting Bridge question
- From: email@hidden
- Date: Thu, 15 Nov 2007 23:43:49 +0100
True, not needed. Thanks.
On Nov 15, 2007 11:38 PM, Shawn Erickson <email@hidden> wrote:
> 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