Programmatically determining number of arguments a selector takes
Programmatically determining number of arguments a selector takes
- Subject: Programmatically determining number of arguments a selector takes
- From: Andrew White <email@hidden>
- Date: Fri, 03 Jun 2005 18:30:46 +1000
I have some callback code that requires the user to pass in a selector.
I'd like to validate that the selector is of the correct form - it must
take exactly one argument.
I've searched through the doco and have not been able to find a function
that will tell me how many args an object of type SEL requires. Does
something like this exist?
Is there an easy way to allow such selectors to return 'void', or is it
simpler to just ignore the (id) return value? NSInvocation is a bit
heavyweight for what I'm doing.
Thanks
--
Andrew White
--------------------------------------------------------------------------
This email and any attachments may be confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
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