Re: Selector not recognised [sic] error
Re: Selector not recognised [sic] error
- Subject: Re: Selector not recognised [sic] error
- From: David Remahl <email@hidden>
- Date: Mon, 25 Mar 2002 02:09:16 +0100
Strictly speaking, the _compiler_ probably believes it is a mutable string.
The runtime, however...Just some nit-picking.
/ David
>
Zac,
>
>
What is finalText? How do you initialize it?
>
>
The compiler seems to think that it is an instance of your AppController
>
class and not a NSMutableString.
>
>
- Sam
>
>
On 3/24/02 4:35 PM, "Zac Belado" <email@hidden> wrote:
>
>
> I have the following code snippet
>
>
>
> theResults = [NSString stringWithFormat:@"%d : %@\n", n, currentLine];
>
> [finalText appendString:theResults];
>
>
>
> theResults is defined as an NSstring and finalText is defined as an
>
> NSMutableString
>
>
>
> When the code runs I get an error
>
>
>
> 2002-03-24 15:38:09.815 dView[682] *** -[AppController appendString:]:
>
> selector not recognized
>
>
>
> Any idea why its raising this error when appendString is most assuredly a
>
> method of NSMutableString?
>
>
>
>
>
> TIA
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.