Package pycocoa :: Module runtime :: Class ObjCBoundMethod
[frames] | no frames]

Class ObjCBoundMethod

object --+    
         |    
  ObjCBase --+
             |
            ObjCBoundMethod
Known Subclasses:

Python wrapper for an ObjC class or instance method, an IMP_t.


Note: Each ObjC method invocation requires creation of another, new ObjCBoundMethod instance wich is immediately discarded thereafter.

Instance Methods
 
__init__(self, method, objc_id)
Initialize with an ObjC method IMP_t, ObjCInstance or ObjCClass object.
 
__str__(self)
str(x)
 
__call__(self, *args)
Call the method with the given arguments.

Inherited from ObjCBase: __repr__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties
  method
  objc_id

Inherited from object: __class__

Method Details

__init__(self, method, objc_id)
(Constructor)

 

Initialize with an ObjC method IMP_t, ObjCInstance or ObjCClass object.

Overrides: object.__init__

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)