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 (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