• 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: Compare NSNumber with an int
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compare NSNumber with an int


  • Subject: Re: Compare NSNumber with an int
  • From: Stephane Sudre <email@hidden>
  • Date: Mon, 15 Dec 2003 12:00:57 +0100

On Monday, December 15, 2003, at 11:50 AM, Roberto wrote:

How can I compare an NSNumber with an int?

The first 2 methods return me errors

with:
if(Number == 10)

with:
if([Number isEqualToNumber]: 10)

or with??

With a look at the documentation.

if ([tNumber intValue]==10)
_______________________________________________
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: 
 >Compare NSNumber with an int (From: Roberto <email@hidden>)

  • Prev by Date: Compare NSNumber with an int
  • Next by Date: Re: Compare NSNumber with an int
  • Previous by thread: Compare NSNumber with an int
  • Next by thread: Re: Compare NSNumber with an int
  • Index(es):
    • Date
    • Thread