• 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: A bit confused
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A bit confused


  • Subject: Re: A bit confused
  • From: j o a r <email@hidden>
  • Date: Thu, 17 Jun 2004 12:04:21 +0200

On 2004-06-17, at 11.52, Michael Curtis wrote:

> main.m:34: assignment makes integer from pointer without a cast

It's much easier to answer if you show the code that triggers the
warning...

> I am guessing that I am trying to get a number out of an object
> straight into an int and I am not allowed to do this?

You're probably doing something like this:

int someInt = myIntNumber;

...when you should do:

int someInt = [myIntNumber intValue];

j o a r

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >A bit confused (From: Michael Curtis <email@hidden>)

  • Prev by Date: A bit confused
  • Next by Date: Re: Releasing memory
  • Previous by thread: A bit confused
  • Next by thread: Re: A bit confused
  • Index(es):
    • Date
    • Thread