• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting Bridge question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Scripting Bridge question
      • From: 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)

  • Prev by Date: Re: Scripting Bridge question
  • Next by Date: Re: Scripting Bridge question
  • Previous by thread: Re: Scripting Bridge question
  • Next by thread: Re: Scripting Bridge question
  • Index(es):
    • Date
    • Thread