Re: minor ARC casting question
Re: minor ARC casting question
- Subject: Re: minor ARC casting question
- From: David Duncan <email@hidden>
- Date: Tue, 1 Nov 2011 19:01:42 -0700
On Nov 1, 2011, at 6:38 PM, Matt Neuburg wrote:
>
> 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.
Turns out the project I tested this with was confused about which target to provide errors & warnings about. I did this in a fresh project and reproduced your experience.
--
David Duncan
_______________________________________________
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