Re: selector not recognized problem (newbie question)
Re: selector not recognized problem (newbie question)
- Subject: Re: selector not recognized problem (newbie question)
- From: Jérôme Paschoud <email@hidden>
- Date: Sun, 30 Mar 2003 12:09:42 +0200
>
In your code, you are sending that message to an instance of NSString
>
(or rather, the NSCFString subclass).
>
Even though you declare that inputString is an instance of convert, you
>
actually instantiate it as an NSString instance (note that [NSString
>
alloc]) returns an instance of NSString, not your specific subclass.
>
If you replace the [NSString alloc] with [convert alloc] the rest of
>
the code should work the way that you want it to.
>
>
Hope that helps,
>
Jeff.
Thanks for the help, your guess was right after that I didn't get anymore
"selector not recognized" error but I get a error with an abstarct object
that needs to be instantiated (problem du to class cluster I suppose). So I
chose the solution from Brant Vasilieff wich is to create a Category instead
of subclassing the NSString class, and it works now flawlessly.
Thanks all.
_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Tilicharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1hre messagerie instantanie de France
_______________________________________________
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.