(name, signature=None)
return _namedselector
Decorator for overriding the Objective-C SEL for a method, usage:

        @namedSelector("foo:bar:")
        def foobar(self, foo, bar):
            return foo + bar
Decorator for overriding the Objective-C SEL for a method, usage:
Decorator for overriding the Objective - C SEL for a method usage :
def namedSelector(name, signature=None):
    """
    Decorator for overriding the Objective-C SEL for a method, usage:

        @namedSelector("foo:bar:")
        def foobar(self, foo, bar):
            return foo + bar
    """
    if signature is not None:
        def _namedselector(func):
            if func is None:
                raise TypeError("IBAction argument must be a callable")
            return selector(func, selector=name, signature=signature)
    else:
        def _namedselector(func):
            if func is None:
                raise TypeError("IBAction argument must be a callable")
            return selector(func, selector=name)

    return _namedselector
def namedSelector ( name , signature = None ) : if signature is not None : def _namedselector ( func ) : if func is None : raise TypeError ( "IBAction argument must be a callable" ) return selector ( func , selector = name , signature = signature ) else : def _namedselector ( func ) : if func is None : raise TypeError ( "IBAction argument must be a callable" ) return selector ( func , selector = name ) return _namedselector