Re: Compare NSNumber with an int
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.