1__all__ = [ 'signature']
2
3import os
4import sys
5
6def signature(signature, **kw):
7    """
8    A Python method decorator that allows easy specification
9    of Objective-C selectors.
10
11    Usage::
12
13        @objc.signature('i@:if')
14        def methodWithX_andY_(self, x, y):
15            return 0
16    """
17    import warnings
18    warnings.warn("Usage objc.typedSelector instead of objc.signature")
19    from objc._objc import selector
20    kw['signature'] = signature
21    def makeSignature(func):
22        return selector(func, **kw)
23    return makeSignature
24