• 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: Block error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Block error


  • Subject: Re: Block error
  • From: Rick Mann <email@hidden>
  • Date: Sat, 16 Jul 2011 11:29:00 -0700

On Jul 16, 2011, at 11:10 , Greg Guerin wrote:

> Rick Mann wrote:
>
>> Test.m:38:0 Test.m:38: error: incompatible type returning 'void *', expected 'struct Foo *'
>>
>> I can work around it by not returning nil, but rather by returning a nil class reference of type other than id.
>
>
> Explicit type cast?  E.g.:
>
> return (Foo *) nil;
>
> return (id) nil;

Really not very elegant, is it?

--
Rick

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Block error (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: Block error
  • Next by Date: Xcode 3.2.6: iPhone 3.2 Simulator Missing
  • Previous by thread: Re: Block error
  • Next by thread: Xcode 3.2.6: iPhone 3.2 Simulator Missing
  • Index(es):
    • Date
    • Thread