Re: Block error
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