• 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: Joar Wingfors <email@hidden>
  • Date: Sun, 6 Dec 2009 16:31:53 -0800

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

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

  • Prev by Date: Re: unrecognized selector error when calling -stringValue on NSNumber
  • Next by Date: Re: Heap and memory zone queries
  • 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