A selector is the name of a method inside a class. It is used to identify a method, most often when called. A signature is a description of the arguments and return types. It is used when calling an arbitrary method, such as NSInvocation, to organize arguments and free up space for the return value. Many selectors can have the same signature.
SEL aSelector = @selector(method:foo:); NSMethodSignature *aSignature = [theObject methodSignatureForSelector:aSelector];
NSMethodSignature is a wrapper for objc_method_description types.
drawnonward Jun 22 '10 at 16:29 2010-06-22 16:29
source share