Re: Optional methods
Re: Optional methods
- Subject: Re: Optional methods
- From: Quincey Morris <email@hidden>
- Date: Thu, 21 Feb 2008 09:35:04 -0800
On Feb 21, 2008, at 07:57, Mike R. Manzano wrote:
I'd like to create an informal protocol where objects can have an
optional method. Senders of the object would be required to send
respondsToSelector: to find out if am object implements the method
before calling it.
The problem is that the compiler complains that the method doesn't
exist if a sender actually does send that message to an object.
You can't use performSelector (or NSInvocation, at worst) to invoke
the method?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden