You were close. The correct decorator for this method is:
@objc.signature('v@:o^@{_NSRange=QQ}')
NSRange , @; 1.
, . PyObjC , , , , , , . ( , , .)
objc.registerMetaDataForSelector:
objc.registerMetaDataForSelector(b"SUPERCLASSNAME",
b"getKey:range:",
dict(retval=dict(type=objc._C_VOID),
arguments={
2+0: dict(type_modifier=objc._C_OUT,
c_array_length_in_arg=2+1),
2+1: dict(type=b'{_NSRange=II}',
type64=b'{_NSRange=QQ}')
}
)
)
test_metadata_py.py ( test_metadata*.py ) PyObjC.
NB, , get<Key>:range: for, - ( , class, , , ). .
NSArray getObjects:range: Foundation PyObjC.bridgesupport 2 Apple BridgeSupport.
, , - ( , IMO):
@objc.signature('v@:o^@{_NSRange=QQ}')
def get<
return self.<
I.e., getObjects:range:.
1: 32- Python QQ, unsigned long long s, II, unsigned int s
2: ( Snow Leopard) :/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC/Foundation/PyObjC.bridgesupport