Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Bridge question



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Scripting Bridge question (From: has <email@hidden>)
 >Re: Scripting Bridge question (From: email@hidden)
 >Re: Scripting Bridge question (From: email@hidden)
 >Re: Scripting Bridge question (From: "Shawn Erickson" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.