Re: minor ARC casting question
Re: minor ARC casting question
- Subject: Re: minor ARC casting question
- From: Matt Neuburg <email@hidden>
- Date: Tue, 01 Nov 2011 18:38:33 -0700
On Nov 1, 2011, at 5:21 PM, David Duncan wrote:
> This compiles for me under ARC:
> NSArray *array = [NSArray arrayWithObject:[[UIColor greenColor] CGColor]];
>
Well, not for me. I get: "Implicit conversion of a non-Objective-C pointer type 'CGColorRef' (aka 'struct CGColor *') to 'id' is disallowed with ARC."
So now I'd like to understand the difference in our experiences. On my machine I'm using a drop-dead spanking new iOS 5 template based project, with ARC turned on at template-specification time. m.
--
matt neuburg, phd = email@hidden, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
Programming iOS 4! http://www.apeth.net/matt/default.html#iosbook
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
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