• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: selector not recognized problem (newbie question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: selector not recognized problem (newbie question) (From: Jeff Disher <email@hidden>)

  • Prev by Date: Re: How to detect whether a filename points to a text clipping?
  • Next by Date: Re: NSMatrix & mouseDragged?
  • Previous by thread: Re: selector not recognized problem (newbie question)
  • Next by thread: Re: selector not recognized problem (newbie question)
  • Index(es):
    • Date
    • Thread