Re: minor ARC casting question
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