Package pycocoa :: Module nstypes :: Class NSStr
[frames] | no frames]

Class NSStr

      object --+            
               |            
runtime.ObjCBase --+        
                   |        
runtime.ObjCInstance --+    
                       |    
                   CFStr --+
                           |
                          NSStr
Known Subclasses:

Python wrapper for the ObjC NSString class, creating auto-released instances, by default.

Instance Methods

Inherited from CFStr: __str__

Inherited from runtime.ObjCInstance: __getattr__, release, set_ivar

Inherited from runtime.ObjCBase: __repr__

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

Static Methods
a new object with type S, a subtype of T
__new__(cls, ustr, auto=True)
New NSStr.
Properties

Inherited from CFStr: str, value

Inherited from runtime.ObjCInstance: Type, objc_class, objc_classname, objc_description, ptr

Inherited from object: __class__

Method Details

__new__(cls, ustr, auto=True)
Static Method

 

New NSStr.

Parameters:
  • ustr - The string value (str or bytes).
  • auto - Retain or auto-release (bool).
Returns: a new object with type S, a subtype of T
The string (NSStr).
Overrides: object.__new__