• 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 00:56:25 -0700

Oh so the very first return value from a Dictionary is not actually a
string?
NSString *itemA = [DictionaryA valueForKey:@"FirstProcessIdentifier"];

I've check the apple document, valueForKey returns an ID...  so it return an
object? how do I proceed?
If i cast it as NSString it gives me an error.

Thanks,
John




On Tue, May 26, 2009 at 12:48 AM, Bill Bumgarner <email@hidden> wrote:

> On May 26, 2009, at 12:46 AM, John Ku wrote:
>
>> Its weird, I saw isEqualToString from the apple documents too, but don't
>> understand why it isn't recognized
>>
>
> The error message makes it quite clear....
>
>  * *** -[NSCFNumber isEqualToString:]: unrecognized selector sent to
>> instance 0x147ee0*
>>
>
> ... one of your "strings" is actually not a string at all.
>
> b.bum
>
>
_______________________________________________

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: Thomas Davie <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>)
 >Re: String Comparison and return values (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: NSOperation cancellation
  • 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