• 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: 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

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

  • Prev by Date: Re: Problems with runModalForWindow, looking for alternatives
  • Next by Date: Re: minor ARC casting question
  • Previous by thread: Re: minor ARC casting question
  • Next by thread: Re: minor ARC casting question
  • Index(es):
    • Date
    • Thread