turn off warnings for proxies
turn off warnings for proxies
- Subject: turn off warnings for proxies
- From: Agent M <email@hidden>
- Date: Sun, 17 Oct 2004 15:53:13 -0400
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@hidden
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden