Yeah, it seems that the problem exist between chair and keyboard. Just starting, so I thought I could use NSString for everything. :) Need to pay attention to types more!
Thanks, John On Tue, May 26, 2009 at 1:10 AM, Jelle De Laender < maill...@codingmammoth.com> wrote: > A NSNumber has a 'stringValue' method, but I don't know why you want to > compare them at String-level. > > Jelle, > > > On 26 May 2009, at 10:07, John Ku wrote: > > 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 >> <listsapple...@googlemail.com>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 <john.c...@gmail.com> wrote: >>> >>> Thanks, but its giving me this error now: >>> >>> >>> * *** -[NSCFNumber isEqualToString:]: unrecognized selector sent to >>> >>> instance 0x147ee0* >>> >>> >>> >>> _______________________________________________ >> >> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >> >> 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: >> >> http://lists.apple.com/mailman/options/cocoa-dev/maillist%40codingmammoth.com >> >> This email sent to maill...@codingmammoth.com >> > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com