• 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: unrecognized selector error when calling -stringValue on NSNumber
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unrecognized selector error when calling -stringValue on NSNumber


  • Subject: Re: unrecognized selector error when calling -stringValue on NSNumber
  • From: "Mazen M. Abdel-Rahman" <email@hidden>
  • Date: Sun, 06 Dec 2009 18:57:52 -0700

Thanks!  I found the problem - it is being assigned from a ComboBox - and the datasource for the ComboBox was returning a string  - so I just had to change it to return a number.

Bad mistake on my part.

Thanks,
Mazen

On Dec 6, 2009, at 5:31 PM, Joar Wingfors wrote:

>
> On 6 dec 2009, at 15.58, Mazen M. Abdel-Rahman wrote:
>
>> 2009-12-06 16:51:24.525 Averroes[21013:a0f] -[NSCFString stringValue]: unrecognized selector sent to instance 0x1001d8a70
>>
>> Doesn't that mean that it thinks primaryLanguageNumber is a string?  And why would it see it as a string?
>
>
> It doesn't think it is a string, it is a string. The most likely cause for this type of problem is a memory management error in your -primaryLanguageID method, where the object you returned has been deallocated, and a new object (here a string) has taken its place in memory. The second most likely cause is that you're simply returning the wrong type of object.
>
> j o a r
>
>

_______________________________________________

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

References: 
 >unrecognized selector error when calling -stringValue on NSNumber (From: "Mazen M. Abdel-Rahman" <email@hidden>)
 >Re: unrecognized selector error when calling -stringValue on NSNumber (From: Joar Wingfors <email@hidden>)

  • Prev by Date: Re: Heap and memory zone queries
  • Next by Date: Re: unrecognized selector error when calling -stringValue on NSNumber
  • Previous by thread: Re: unrecognized selector error when calling -stringValue on NSNumber
  • Next by thread: Re: unrecognized selector error when calling -stringValue on NSNumber
  • Index(es):
    • Date
    • Thread