| Home | Trees | Indices | Help |
|
|---|
|
|
Version: 18.03.11
| Classes | |
|
ObjCBoundMethod Python wrapper for an Objective-C method (an IMP) which has been bound to some Id which is passed as the first method argument. |
|
|
ObjCClass Python wrapper for an Objective-C class. |
|
|
ObjCInstance Python wrapper for an Objective-C instance. |
|
|
ObjCMethod This represents an unbound Objective-C method (really an IMP). |
|
|
ObjCSubclass Use this to create a subclass of an existing Objective-C class. |
|
| Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Variables | |
libobjc = <CDLL '/usr/lib/libobjc.dylib', handle 108278680 at
|
|
OBJC_ASSOCIATION_COPY = 771
|
|
OBJC_ASSOCIATION_COPY_NONATOMIC = 3
|
|
OBJC_ASSOCIATION_RETAIN = 769
|
|
OBJC_ASSOCIATION_RETAIN_NONATOMIC = 1
|
|
| Function Details |
Split a type encoding into separate type encodings. Does not handle bitfields, arrays, structs, unions, etc. and strips any offset, size or width specifiers from the encoding. Examples: >>> split_encoding('^v16@0:8') >>> ['^v', '@', ':'] >>> split_encoding('{CGSize=dd}40@0:8{PyObject=@}Q32') >>> ['{CGSize=dd}', '@', ':', '{PyObject=@}', 'Q'] Supported Type Encodings:
Unsupported Type Encodings:
For Objective-C internal use only:
Type encodings may be preceeded by a |
Split the type encoding of a method signature into separate, single encodings and the combined encoding. If necessary, the encoding is extended with the type encoding for the
hidden method arguments Does not handle bitfields, arrays, structs, unions, etc. and strips any offset, size or width specifiers from the encoding. In the returned 2-tuple (codes, encoding), codes is the
list of individual type encodings from item start=0 and
encoding the combined type encoding in Example: >>> split_emcoding2('v*') >>> (['v', '@', ':', '*'], 'v@:*') |
Add an instance variable to an Objective-C class, see also DeallocObserver below. The ctype must be a |
Add a method to an Objective-C class. The signature is the type encoding for the result and arguments of the method callable. |
Create a new sub-class of the given super-class. After calling New methods can be added after the class has been registered, but any ivars must be added before the class is registrated. Or, use keyword argument register=True to register the class and specify any number of instance variables to be added as keyword arguments ivarname=ctype. |
Get the Limited to basic type encodings and pointers to basic type encodings and does not handle arrays, bitfiels, arbitrary structs and unions. The signature is a |
Yield all loaded Objective-C classes with a name starting with one of the given prefixes. For each class yield a 2-tuple (name, class) where name is the class name and class is the Objective-C class object. |
Yield all instance variables of an Objective-C class with a name starting with one of the given prefixes. For each ivar yield a 4-tuple (name, encoding, ctype, ivar)
where name is the ivar name, encoding is the ivar's type
encoding, ctype is the ivar's |
Yield all methods of an Objective-C class with a name starting with one of the given prefixes. For each method yield a 4-tuple (name, encoding, rargtypes,
method), where name is the method name, encoding is the
type encoding of the method signature including the return type,
rargtypes the **) In Python 3+ rargtypes is a |
Yield all properties of an Objective-C class or protocol with a name starting with one of the given prefixes. For each property, yield a 3-tuple (name, attributes, setter, property) where attributes is a comma-separated list of the property attibutes, setter is the name of the property setter method, provided the property is writable and property is the Property object. The setter is an empty name '' for read-only properties. Objective-C Property Attributes:
See Property Attributes. |
Yield all protocols of an Objective-C class with a name starting with one of the given prefixes. For each protocol, yield a 2-tuple (name, protocol) where name is the protocol name and protocol the Protocol object. |
Send message to the given receiver. By default, the result and all arguments are Use keyword arguments restype=c_void_p and argtypes=[]
to change the defaults. The restype defines the
|
Send message to the superclass of the given receiver. By default, the result and all arguments are Use keyword arguments restype=c_void_p and argtypes=[]
to change the defaults. The restype defines the
|
| Variables Details |
libobjc
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Mar 15 14:18:44 2018 | http://epydoc.sourceforge.net |