Re: problem with respondsToSelector
Re: problem with respondsToSelector
- Subject: Re: problem with respondsToSelector
- From: Marcel Weiher <email@hidden>
- Date: Sat, 27 Mar 2004 17:12:33 +0000
On 27 Mar 2004, at 16:32, Mark Munz wrote:
if ( [NSAttributedString respondsToSelector:
@selector(initWithDocFormat:documentAttributes:)] )
{
// actually read in the document
}
seems to always return false (thus the document never gets read in).
You are sending the message to the class. The class doesn't respond to
this message, instances of it do.
+instancesRespondToSelector: is probably your friend.
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
1d480c25f397c4786386135f8e8938e4
_______________________________________________
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.