derelict.cocoa.runtime

Objective-C runtime trickery for interfacing.

Members

Aliases

BOOL
alias BOOL = char
Undocumented in source.
CGFloat
alias CGFloat = double
Undocumented in source.
CGFloat
alias CGFloat = float
Undocumented in source.
Class
alias Class = objc_class*
Undocumented in source.
IMP
alias IMP = id function(id, SEL, ...)
Undocumented in source.
Ivar
alias Ivar = objc_ivar*
Undocumented in source.
Method
alias Method = objc_method*
Undocumented in source.
NSInteger
alias NSInteger = ptrdiff_t
Undocumented in source.
NSUInteger
alias NSUInteger = size_t
Undocumented in source.
Protocol
alias Protocol = objc_object
Undocumented in source.
SEL
alias SEL = char*
Undocumented in source.
id
alias id = objc_object*
Undocumented in source.
objc_property_t
alias objc_property_t = void*
Undocumented in source.
pfclass_addIvar
alias pfclass_addIvar = bool function(Class cls, const(char)* name, size_t size, byte alignment, const(char)* types)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfclass_addMethod
alias pfclass_addMethod = bool function(Class cls, const(SEL) name, IMP imp, const(char)* types)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfclass_addProtocol
alias pfclass_addProtocol = BOOL function(Class cls, Protocol* protocol)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfclass_conformsToProtocol
alias pfclass_conformsToProtocol = BOOL function(Class cls, Protocol* protocol)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfclass_getInstanceMethod
alias pfclass_getInstanceMethod = Method function(Class aClass, const(SEL) aSelector)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfmethod_setImplementation
alias pfmethod_setImplementation = IMP function(Method method, IMP imp)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobjc_allocateClassPair
alias pfobjc_allocateClassPair = Class function(Class superclass, const(char)* name, size_t extraBytes)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobjc_allocateProtocol
alias pfobjc_allocateProtocol = Protocol* function(const(char)* name)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobjc_disposeClassPair
alias pfobjc_disposeClassPair = void function(Class cls)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobjc_getClass
alias pfobjc_getClass = id function(const(char)* name)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobjc_getProtocol
alias pfobjc_getProtocol = Protocol* function(const(char)* name)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobjc_lookUpClass
alias pfobjc_lookUpClass = id function(const(char)* name)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobjc_msgSend
alias pfobjc_msgSend = id function(id theReceiver, SEL theSelector, ...)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobjc_msgSendSuper
alias pfobjc_msgSendSuper = id function(objc_super* superr, SEL op, ...)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobjc_msgSend_NSPointret
alias pfobjc_msgSend_NSPointret = NSPoint function(id theReceiver, const(SEL) theSelector, ...)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobjc_msgSend_fpret
alias pfobjc_msgSend_fpret = double function(id self, SEL op, ...)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobjc_msgSend_stret
alias pfobjc_msgSend_stret = void function(void* stretAddr, id theReceiver, SEL theSelector, ...)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobjc_registerClassPair
alias pfobjc_registerClassPair = Class function(Class superclass)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobjc_registerProtocol
alias pfobjc_registerProtocol = void function(Protocol* proto)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobject_getClassName
alias pfobject_getClassName = const(char)* function(id obj)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobject_getInstanceVariable
alias pfobject_getInstanceVariable = Ivar function(id obj, const(char)* name, void** outValue)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfobject_setInstanceVariable
alias pfobject_setInstanceVariable = Ivar function(id obj, const(char)* name, void* value)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfprotocol_addMethodDescription
alias pfprotocol_addMethodDescription = void function(Protocol* proto, SEL name, const char* types, BOOL isRequiredMethod, BOOL isInstanceMethod)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pfsel_registerName
alias pfsel_registerName = SEL function(const(char)* str)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Enums

NO
anonymousenum NO
Undocumented in source.

Functions

NSMakeRect
NSRect NSMakeRect(CGFloat x, CGFloat y, CGFloat w, CGFloat h)
Undocumented in source. Be warned that the author may not have intended to support it.
class_addIvar
bool class_addIvar(Class cls, string name, size_t size, byte alignment, string types)
Undocumented in source. Be warned that the author may not have intended to support it.
class_addMethod
bool class_addMethod(Class cls, SEL name, IMP imp, string types)
Undocumented in source. Be warned that the author may not have intended to support it.
class_getInstanceMethod
Method class_getInstanceMethod(Class aClass, string aSelector)
Undocumented in source. Be warned that the author may not have intended to support it.
lazyClass
id lazyClass()
Undocumented in source. Be warned that the author may not have intended to support it.
lazyProtocol
Protocol* lazyProtocol()
Undocumented in source. Be warned that the author may not have intended to support it.
objc_allocateClassPair
Class objc_allocateClassPair(Class superclass, const(char)* name, size_t extraBytes)
Undocumented in source. Be warned that the author may not have intended to support it.
objc_getClass
id objc_getClass(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
objc_getClass
id objc_getClass(char* name)
Undocumented in source. Be warned that the author may not have intended to support it.
objc_lookUpClass
id objc_lookUpClass(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
sel
SEL sel()
Undocumented in source. Be warned that the author may not have intended to support it.
sel_registerName
SEL sel_registerName(string str)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

class_addProtocol
pfclass_addProtocol class_addProtocol;
Undocumented in source.
class_conformsToProtocol
pfclass_conformsToProtocol class_conformsToProtocol;
Undocumented in source.
method_setImplementation
pfmethod_setImplementation method_setImplementation;
Undocumented in source.
objc_allocateProtocol
pfobjc_allocateProtocol objc_allocateProtocol;
Undocumented in source.
objc_disposeClassPair
pfobjc_disposeClassPair objc_disposeClassPair;
Undocumented in source.
objc_getProtocol
pfobjc_getProtocol objc_getProtocol;
Undocumented in source.
objc_msgSend
pfobjc_msgSend objc_msgSend;
Undocumented in source.
objc_msgSendSuper
pfobjc_msgSendSuper objc_msgSendSuper;
Undocumented in source.
objc_msgSend_fpret
pfobjc_msgSend_fpret objc_msgSend_fpret;
Undocumented in source.
objc_msgSend_stret
pfobjc_msgSend_stret objc_msgSend_stret;
Undocumented in source.
objc_registerClassPair
pfobjc_registerClassPair objc_registerClassPair;
Undocumented in source.
objc_registerProtocol
pfobjc_registerProtocol objc_registerProtocol;
Undocumented in source.
object_getInstanceVariable
pfobject_getInstanceVariable object_getInstanceVariable;
Undocumented in source.
object_setInstanceVariable
pfobject_setInstanceVariable object_setInstanceVariable;
Undocumented in source.
protocol_addMethodDescription
pfprotocol_addMethodDescription protocol_addMethodDescription;
Undocumented in source.
varclass_addIvar
pfclass_addIvar varclass_addIvar;
Undocumented in source.
varclass_addMethod
pfclass_addMethod varclass_addMethod;
Undocumented in source.
varclass_getInstanceMethod
pfclass_getInstanceMethod varclass_getInstanceMethod;
Undocumented in source.
varobjc_allocateClassPair
pfobjc_allocateClassPair varobjc_allocateClassPair;
Undocumented in source.
varobjc_getClass
pfobjc_getClass varobjc_getClass;
Undocumented in source.
varobjc_lookUpClass
pfobjc_lookUpClass varobjc_lookUpClass;
Undocumented in source.
varobject_getClassName
pfobject_getClassName varobject_getClassName;
Undocumented in source.
varsel_registerName
pfsel_registerName varsel_registerName;
Undocumented in source.

Structs

NSPoint
struct NSPoint
Undocumented in source.
NSRange
struct NSRange
Undocumented in source.
NSRect
struct NSRect
Undocumented in source.
NSSize
struct NSSize
Undocumented in source.
objc_cache
struct objc_cache
Undocumented in source.
objc_class
struct objc_class
Undocumented in source.
objc_ivar
struct objc_ivar
Undocumented in source.
objc_ivar_list
struct objc_ivar_list
Undocumented in source.
objc_method
struct objc_method
Undocumented in source.
objc_method_list
struct objc_method_list
Undocumented in source.
objc_object
struct objc_object
Undocumented in source.
objc_protocol_list
struct objc_protocol_list
Undocumented in source.
objc_super
struct objc_super
Undocumented in source.

Templates

encode
template encode(T)
Undocumented in source.

Meta

License

Boost License 1.0

Unknown licence from:

Initial Version: Darrell Walisser <dwaliss1@purdue.edu> Non-NIB-Code & other changes: Max Horn <max@quendi.de> Port to the D programming language: Jacob Carlborg <jacob.carlborg@gmail.com> Resurrected by: Guillaume Piolat <contact@auburnsounds.com> for the purpose of audio plug-ins

It just says "Feel free to customize this file for your purpose"

TODO ask original authors of the runtime trickery for a licence