RE: Yet another stupid newbie's question
RE: Yet another stupid newbie's question
- Subject: RE: Yet another stupid newbie's question
- From: Jens Baumeister <email@hidden>
- Date: Tue, 28 Aug 2001 13:32:46 +0200
>
-----Original Message-----
>
From: email@hidden [mailto:email@hidden]
>
int value=[myArray objectAtIndex:0] makes the compiler scream:
>
"assignment makes integer from pointer without a cast"... :-(
Righfully so, because that'll only give you back an NSNumber object.
Try this instead:
int value = [[myArray objectAtIndex:0] intValue];
That should work.
_____________________________________
Jens Baumeister
Bullex GmbH, Cologne, Germany
She sells c-shells by the sea shore.