Skip navigation.
 
mlRe: Checking a method for parameter types via SEL
FROM : Andrei Tchijov
DATE : Mon Jul 31 20:30:14 2006

There is no way to check " method for parameter types".  The only 
thing you can do is to check that an object "responds to selector"

   [ anObject respondsToSelector: @selector( aMethod: )]

This will return true if an object responds to selector "-aMethod:" 
regardless of type of return value or parameter.


On Jul 31, 2006, at 2:23 PM, Tommy Nordgren wrote:

> Can someone who have been using cocoa long please tell me how to do 
> this?
> The signature should be like this:
> -(BOOL) aMethod: (id) owner;
> ------------------------------------------------------
> "Home is not where you are born, but where your heart finds peace" -
> Tommy Nordgren, "The dying old crone"
> tommy.<email_removed>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>

Related mailsAuthorDate
mlChecking a method for parameter types via SEL Tommy Nordgren Jul 31, 20:23
mlRe: Checking a method for parameter types via SEL Andrei Tchijov Jul 31, 20:30
mlRe: Checking a method for parameter types via SEL Ryan Britton Jul 31, 20:32
mlRe: Checking a method for parameter types via SEL Sherm Pendley Jul 31, 20:39
mlRe: Checking a method for parameter types via SEL Bill Bumgarner Jul 31, 20:49
mlRe: Checking a method for parameter types via SEL Tommy Nordgren Jul 31, 21:31
mlRe: Checking a method for parameter types via SEL Erik Buck Jul 31, 23:19
mlRe: Re: Checking a method for parameter types via SEL Michael Ash Aug 1, 01:09