Crate objc_sys

source ·
Expand description

Raw bindings to Objective-C runtimes

These bindings contain almost no documentation, so it is highly recommended to read the documentation of the original libraries:

See also the README.md for more background information, and for how to configure the desired runtime.

Structs

An opaque type that represents an Objective-C class.
An opaque type that represents an instance variable.
A type that represents a method in a class definition.
Describes an Objective-C method.
An opaque type that represents an object / an instance of a class.
An opaque type that describes a property in a class.
Describes an Objective-C property attribute.
Opaque type for Objective-C protocols.
An opaque type that represents a method selector.
Specifies data used when sending messages to superclasses.

Constants

The equivalent of false for Objective-C’s BOOL type.
The maximum value for an NSInteger.
The minimum value for an NSInteger.
The maximum value for an NSUInteger.
A quick alias for a null_mut class.
Only relevant before macOS 10.13
Only relevant before macOS 10.13
The equivalent of true for Objective-C’s BOOL type.
A quick alias for a null_mut object / instance.

Functions

_objc_msgForward_stretapple and non-AArch64
class_addIvarNon-objfw
class_addPropertyNon-objfw
class_addProtocolNon-objfw
class_copyIvarListNon-objfw
class_getPropertyNon-objfw
class_getVersionNon-objfw
class_setVersionNon-objfw
imp_getBlockNon-objfw
imp_removeBlockNon-objfw
ivar_getNameNon-objfw
ivar_getOffsetNon-objfw
method_getNameNon-objfw
method_invoke_stretapple and non-AArch64
objc_addExceptionHandlerapple_new and macOS
objc_begin_catchgnustep or apple_new
objc_constructInstanceDeprecatedapple
objc_destructInstanceDeprecatedapple
objc_end_catchgnustep or apple_new
objc_enumerationMutationapple or objfw
objc_getFutureClassDeprecatedapple
objc_getMetaClassNon-objfw
objc_getProtocolNon-objfw
objc_msgSendNon-objfw
objc_msgSendSuper_stretapple and non-AArch64
objc_msgSend_fp2retapple and x86-64
objc_msgSend_fpretNon-objfw and (x86-64 or x86)
objc_msgSend_stretNon-objfw and non-AArch64
objc_msg_lookupgnustep or objfw
objc_msg_lookup_supergnustep or objfw
objc_removeExceptionHandlerapple_new and macOS
objc_setForwardHandlerapple or objfw
object_copyDeprecatedapple
object_disposeDeprecatedNon-objfw
object_getInstanceVariableDeprecatedNon-objfw
object_getIvarNon-objfw
object_setInstanceVariableDeprecatedNon-objfw
object_setIvarNon-objfw
property_getNameNon-objfw
sel_getUidNon-objfw
sel_isMappedapple

Type Definitions

The Objective-C BOOL type.
A nullable pointer to the start of a method implementation.
A signed integer value type.
Describes an unsigned integer.
An immutable pointer to a selector.
A mutable pointer to an object / instance.
objc_exception_handlerapple_new and macOS
Remember that this is non-null!
Remember that this is non-null!
Remember that this is non-null!
Remember that this is non-null!