• 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: String Comparison and return values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String Comparison and return values


  • Subject: Re: String Comparison and return values
  • From: John Ku <email@hidden>
  • Date: Tue, 26 May 2009 01:07:27 -0700

That seems to make sense to use NSNumber instead of NSString, thanks it
works!

But I would think NSString would accept the return numbers as string and
compare them at the string level, it should work in theory no?  But NSNumber
- isEqualToNumber works great!

Thanks!
On Tue, May 26, 2009 at 12:57 AM, listsapple
<email@hidden>wrote:

>
> I wonder if isEqualToNumber is what you need?
>
> bw
>
>
> On 26 May 2009, at 08:46, John Ku wrote:
>
> Its weird, I saw isEqualToString from the apple documents too, but don't
> understand why it isn't recognized
>
> On Tue, May 26, 2009 at 12:42 AM, John Ku <email@hidden> wrote:
>
> Thanks, but its giving me this error now:
>
>
> * *** -[NSCFNumber isEqualToString:]: unrecognized selector sent to
>
> instance 0x147ee0*
>
>
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: String Comparison and return values
      • From: Jelle De Laender <email@hidden>
References: 
 >String Comparison and return values (From: John Ku <email@hidden>)
 >Re: String Comparison and return values (From: Graham Cox <email@hidden>)
 >Re: String Comparison and return values (From: John Ku <email@hidden>)
 >Re: String Comparison and return values (From: John Ku <email@hidden>)

  • Prev by Date: Re: String Comparison and return values
  • Next by Date: Re: String Comparison and return values
  • Previous by thread: Re: String Comparison and return values
  • Next by thread: Re: String Comparison and return values
  • Index(es):
    • Date
    • Thread