• 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: Yet another stupid newbie's question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Yet another stupid newbie's question
  • Next by Date: Re: C++
  • Previous by thread: Re: Yet another stupid newbie's question
  • Next by thread: Re: Yet another stupid newbie's question
  • Index(es):
    • Date
    • Thread