On Sun, 30 Oct 2011 08:46:02 -0700, Kyle Sluder <kyle.slu...@gmail.com> said:
>On Oct 30, 2011, at 8:15 AM, Matt Neuburg <m...@tidbits.com> 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.

Well, it does. Try it... It surprised me too.

Of course that could be a bug. And in that case the third case is also a bug, 
since we're casting to id and assigning to something typed as id 
(layer.contents).

But anyhow, that's exactly my question.

m.

--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to