For debugging purposes, enable logging to the console by setting env
variable PYCOCOA_OBJC_LOG
to a string of one or more of the
following letters:
|
ObjCBoundMethod
Python wrapper for a bound ObjC instance method, an IMP_t.
|
|
ObjCBoundClassMethod
Python wrapper for a bound ObjC class method, only to distinguish
bound class from bound instance methods.
|
|
ObjCClass
Python wrapper for an ObjC class.
|
|
ObjCDelegate
Register the _NS_Delegate._ObjC (sub)class and create
an ObjCClass(_NS_Delegate.__name__) .
|
|
ObjCInstance
Python wrapper for an ObjC instance.
|
|
ObjCConstant
Python wrapper for an ObjC constant.
|
|
ObjCMethod
Python class representing an unbound ObjC instance method, actually
an IMP_t.
|
|
ObjCClassMethod
Python class representing an unbound ObjC class method, only to
distinguish class methods from instance methods.
|
|
ObjCSubclass
Python class creating an ObjC sub-class of an existing ObjC
(super)class.
|
|
add_ivar(clas,
name,
ctype)
Add an instance variable to an ObjC class, |
|
|
|
add_method(clas,
name_,
method,
encoding)
Add a method to an ObjC class. |
|
|
|
add_protocol(clas,
protocol)
Add a protocol to an ObjC class. |
|
|
|
add_subclass(Super,
name,
register=False)
Create a new sub-class of a given super-class. |
|
|
|
drain(objc)
Release all objects in an NSAutoreleasePool instance. |
|
|
|
isClass(objc)
Check whether an object is an ObjC class. |
|
|
|
isImmutable(objc,
*immutableClasses,
**raiser_name)
Check that an ObjC object is an immutable class' instance. |
|
|
|
isMetaClass(objc)
Check whether an object is an ObjC metaclass. |
|
|
|
isMutable(objc,
*mutableClasses,
**raiser_name)
Check that an ObjC object is a mutable class' instance. |
|
|
|
isObjCInstanceOf(objc,
*Classes,
**raiser_name)
Check whether an ObjC object is an instance of some ObjC class. |
|
|
|
|
|
release(objc)
Release an ObjC instance to be deleted, eventually. |
|
|
|
retain(objc)
Preserve an ObjC instance from destruction. |
|
|
|
send_message(objc,
sel_name_,
*args,
**restype_argtypes)
Send message to an ObjC object. |
|
|
|
send_super(objc,
sel_name_,
*args,
**restype_argtypes)
Send message to the super-class of an ObjC object. |
|
|
|
send_super_init(objc)
Send 'init' message to the super-class of an ObjC object. |
|
|
|
set_ivar(objc,
name,
value,
ctype=None)
Set an instance variable of an ObjC object. |
|
|