• 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: minor ARC casting question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: minor ARC casting question


  • Subject: Re: minor ARC casting question
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 30 Oct 2011 08:46:02 -0700

On Oct 30, 2011, at 8:15 AM, Matt Neuburg <email@hidden> wrote:

> And this is legal:
>
>    id ref = (id)[[UIImage imageNamed:@"boat.gif"] CGImage];
>    self.view.layer.contents = ref;

It's my understanding that this shouldn't compile under ARC. You should be required to perform a bridged cast when assigning to ref.

--Kyle Sluder_______________________________________________

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

References: 
 >minor ARC casting question (From: Matt Neuburg <email@hidden>)

  • Prev by Date: minor ARC casting question
  • Next by Date: Re: minor ARC casting question
  • Previous by thread: minor ARC casting question
  • Next by thread: Re: minor ARC casting question
  • Index(es):
    • Date
    • Thread