Re: unrecognized selector error when calling -stringValue on NSNumber

2009-12-06 Thread Quincey Morris
On Dec 6, 2009, at 15:58, Mazen M. Abdel-Rahman wrote: > NSNumber * primaryLanguageNumber = [self primaryLanguageID]; > NSString * primaryLanguageString = [primaryLanguageNumber stringValue]; > > primaryLanguageID is of type NSNumber. When I am stepping through the > debugger I can see the vari

Re: unrecognized selector error when calling -stringValue on NSNumber

2009-12-06 Thread Mazen M. Abdel-Rahman
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.5

Re: unrecognized selector error when calling -stringValue on NSNumber

2009-12-06 Thread Joar Wingfors
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?

Re: unrecognized selector error when calling -stringValue on NSNumber

2009-12-06 Thread Dave Carrigan
On Dec 6, 2009, at 3:58 PM, Mazen M. Abdel-Rahman wrote: > > NSNumber * primaryLanguageNumber = [self primaryLanguageID]; > NSString * primaryLanguageString = [primaryLanguageNumber stringValue]; > > primaryLanguageID is of type NSNumber. When I am stepping through the > debugger I can see th

unrecognized selector error when calling -stringValue on NSNumber

2009-12-06 Thread Mazen M. Abdel-Rahman
Hi all, I am getting a very confusing error when I try to send a -stringValue message to an NSNumber object. Here is my code: NSNumber * primaryLanguageNumber = [self primaryLanguageID]; NSString * primaryLanguageString = [primaryLanguageNumber stringValue]; primaryLanguageID is of type NSNumb