Skip navigation.
 
mlturn off warnings for proxies
FROM : Agent M
DATE : Sun Oct 17 21:53:13 2004

Is there a pragma available to shut off "[object] may not respond to
[selector]" warnings for a particular class?

I have an NSProxy subclass which bounces a message to an object if that
object responds to if, and does nothing if not (a delegate manager). I
have declared the delegate methods in a category of NSObject, but since
my manager object does not inherit from NSObject, I get a warning
everytime I send a message to it.

I guess I could declare the delegate categories twice for NSObject and
NSProxy...

Another possible solution would be to declare the class as a subclass
of NSObject and then swizzle it to NSProxy, but it seems that there
should be a more elegant solution. Anyone?

¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
AgentM
<email_removed>
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬

Related mailsAuthorDate
No related mails found.