Re: unrecognized selector error when calling -stringValue on NSNumber
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