• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Checking a method for parameter types via SEL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking a method for parameter types via SEL


  • Subject: Re: Checking a method for parameter types via SEL
  • From: Andrei Tchijov <email@hidden>
  • Date: Mon, 31 Jul 2006 14:30:14 -0400

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"
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

_______________________________________________ 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
References: 
 >Checking a method for parameter types via SEL (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Checking a method for parameter types via SEL
  • Next by Date: Obtaining environment variables from a cross-referenced project
  • Previous by thread: Checking a method for parameter types via SEL
  • Next by thread: Re: Checking a method for parameter types via SEL
  • Index(es):
    • Date
    • Thread