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

Class ObjCInstance

object --+
         |
        ObjCInstance
Known Subclasses:

Python wrapper for an Objective-C instance.

Instance Methods
 
__getattr__(self, name)
Returns a callable method object with the given name.
 
__repr__(self)
repr(x)
 
objc_classname(self)
Return the name of this object's Objective-C class.
 
set_ivar(self, name, value, ctype=None)
Set an instance variable to the given value.

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

Static Methods
a new object with type S, a subtype of T
__new__(cls, object_ptr)
Create a new ObjCInstance or return a previously created one for the given object_ptr which should be an Objective-C id.
Class Variables
  ptr = None
  objc_class = None
Properties

Inherited from object: __class__

Method Details

__new__(cls, object_ptr)
Static Method

 

Create a new ObjCInstance or return a previously created one for the given object_ptr which should be an Objective-C id.

Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)