Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: David Emme <email@hidden>
- Date: Wed, 26 Jul 2006 11:46:43 -0700
On Jul 26, 2006, at 11:37 AM, Brad Bumgarner wrote:
In the following code I get a warning at the line indicated with
the arrow ("--->"). The warning is:
"warning: assignment from incompatible pointer type." I thought
using an "id" declaration would avoid this kind of thing.
-(NSArray *)shiftObjectsInArray: (NSMutableArray *)anArray {
int x;
id *roller;
if ([anArray count] > 0) {
---> roller = [anArray lastObject];
What you want to say in your declaration is "id", not "id *".
-Dave
--
I started out with nothing, and I still have most of it.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >(no subject) (From: Brad Bumgarner <email@hidden>) |