• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: minor ARC casting question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: minor ARC casting question (From: Matt Neuburg <email@hidden>)
 >Re: minor ARC casting question (From: David Duncan <email@hidden>)
 >Re: minor ARC casting question (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: minor ARC casting question
  • Next by Date: Re: NSAssert no longer displaying reason in console
  • Previous by thread: Re: minor ARC casting question
  • Next by thread: Re: minor ARC casting question
  • Index(es):
    • Date
    • Thread