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 protected]) 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 [email protected]
