Objective-C Functions

No overview available.

Topics

Functions

NXCopyHashTableDeprecated
NXFreeHashTableDeprecated
NXHashGetDeprecated
NXHashInsertDeprecated
NXHashMemberDeprecated
NXHashRemoveDeprecated
NXInitHashStateDeprecated
NXNextHashStateDeprecated
NXNoEffectFreeDeprecated
NXPtrHashDeprecated
NXPtrIsEqualDeprecated
NXReallyFreeDeprecated
NXStrHashDeprecated
NXStrIsEqualDeprecated
class_addIvar

Adds a new instance variable to a class.

class_addMethod

Adds a new method to a class with a given name and implementation.

class_addProperty

Adds a property to a class.

class_addProtocol

Adds a protocol to a class.

class_conformsToProtocol

Returns a Boolean value that indicates whether a class conforms to a given protocol.

class_copyIvarList

Describes the instance variables declared by a class.

class_copyMethodList

Describes the instance methods implemented by a class.

class_copyPropertyList

Describes the properties declared by a class.

class_copyProtocolList

Describes the protocols adopted by a class.

class_createInstance

Creates an instance of a class, allocating memory for the class in the default malloc memory zone.

class_getClassMethod

Returns a pointer to the data structure describing a given class method for a given class.

class_getClassVariable

Returns the Ivar for a specified class variable of a given class.

class_getImageName

Returns the name of the dynamic library a class originated from.

class_getInstanceMethod

Returns a specified instance method for a given class.

class_getInstanceSize

Returns the size of instances of a class.

class_getInstanceVariable

Returns the Ivar for a specified instance variable of a given class.

class_getIvarLayout

Returns a description of the Ivar layout for a given class.

class_getMethodImplementation

Returns the function pointer that would be called if a particular message were sent to an instance of a class.

class_getMethodImplementation_stret

Returns the function pointer that would be called if a particular message were sent to an instance of a class.

class_getName

Returns the name of a class.

class_getProperty

Returns a property with a given name of a given class.

class_getSuperclass

Returns the superclass of a class.

class_getVersion

Returns the version number of a class definition.

class_getWeakIvarLayout

Returns a description of the layout of weak Ivars for a given class.

class_isMetaClass

Returns a Boolean value that indicates whether a class object is a metaclass.

class_replaceMethod

Replaces the implementation of a method for a given class.

class_replaceProperty

Replace a property of a class.

class_respondsToSelector

Returns a Boolean value that indicates whether instances of a class respond to a particular selector.

class_setIvarLayout

Sets the Ivar layout for a given class.

class_setSuperclass

Sets the superclass of a given class.

Deprecated
class_setVersion

Sets the version number of a class definition.

class_setWeakIvarLayout

Sets the layout for weak Ivars for a given class.

imp_getBlock

Returns the block associated with an IMP that was created using imp_implementationWithBlock.

imp_implementationWithBlock

Creates a pointer to a function that calls the specified block when the method is called.

imp_removeBlock

Disassociates a block from an IMP that was created using imp_implementationWithBlock, and releases the copy of the block that was created.

ivar_getName

Returns the name of an instance variable.

ivar_getOffset

Returns the offset of an instance variable.

ivar_getTypeEncoding

Returns the type string of an instance variable.

method_copyArgumentType

Returns a string describing a single parameter type of a method.

method_copyReturnType

Returns a string describing a method's return type.

method_exchangeImplementations

Exchanges the implementations of two methods.

method_getArgumentType

Returns by reference a string describing a single parameter type of a method.

method_getDescription

Returns a method description structure for a specified method.

method_getImplementation

Returns the implementation of a method.

method_getName

Returns the name of a method.

method_getNumberOfArguments

Returns the number of arguments accepted by a method.

method_getReturnType

Returns by reference a string describing a method's return type.

method_getTypeEncoding

Returns a string describing a method's parameter and return types.

method_invoke

Calls the implementation of a specified method.

method_invoke_stret

Calls the implementation of a specified method that returns a data-structure.

method_setImplementation

Sets the implementation of a method.

objc_allocateClassPair

Creates a new class and metaclass.

objc_allocateProtocol

Creates a new protocol instance.

objc_constructInstance

Creates an instance of a class at the specified location.

objc_copyClassList

Creates and returns a list of pointers to all registered class definitions.

objc_copyClassNamesForImage

Returns the names of all the classes within a specified library or framework.

objc_copyImageNames

Returns the names of all the loaded Objective-C frameworks and dynamic libraries.

objc_copyProtocolList

Returns an array of all the protocols known to the runtime.

objc_destructInstance

Destroys an instance of a class without freeing memory and removes any of its associated references.

objc_disposeClassPair

Destroys a class and its associated metaclass.

objc_duplicateClass

Used by Foundation's Key-Value Observing.

objc_enumerationMutation

Inserted by the compiler when a mutation is detected during a foreach iteration.

objc_getAssociatedObject

Returns the value associated with a given object for a given key.

objc_getClass

Returns the class definition of a specified class.

objc_getClassList

Obtains the list of registered class definitions.

objc_getFutureClass

Used by CoreFoundation's toll-free bridging.

objc_getMetaClass

Returns the metaclass definition of a specified class.

objc_getProtocol

Returns a specified protocol.

objc_getRequiredClass

Returns the class definition of a specified class.

objc_loadWeak

Loads the object referenced by a weak pointer and returns it.

objc_lookUpClass

Returns the class definition of a specified class.

objc_msgSend

Sends a message with a simple return value to an instance of a class.

objc_msgSendSuper

Sends a message with a simple return value to the superclass of an instance of a class.

objc_msgSendSuper_stret

Sends a message with a data-structure return value to the superclass of an instance of a class.

objc_msgSend_fpret

Sends a message with a floating-point return value to an instance of a class.

objc_msgSend_stret

Sends a message with a data-structure return value to an instance of a class.

objc_registerClassPair

Registers a class that was allocated using objc_allocateClassPair.

objc_registerProtocol

Registers a newly created protocol with the Objective-C runtime.

objc_removeAssociatedObjects

Removes all associations for a given object.

objc_setAssociatedObject

Sets an associated value for a given object using a given key and association policy.

objc_setEnumerationMutationHandler

Sets the current mutation handler.

objc_storeWeak

Stores a new value in a __weak variable.

object_copy

Returns a copy of a given object.

object_dispose

Frees the memory occupied by a given object.

object_getClass

Returns the class of an object.

object_getClassName

Returns the class name of a given object.

object_getIndexedIvars

Returns a pointer to any extra bytes allocated with a instance given object.

object_getInstanceVariable

Obtains the value of an instance variable of a class instance.

object_getIvar

Reads the value of an instance variable in an object.

object_setClass

Sets the class of an object.

object_setInstanceVariable

Changes the value of an instance variable of a class instance.

object_setIvar

Sets the value of an instance variable in an object.

property_copyAttributeList

Returns an array of property attributes for a given property.

property_copyAttributeValue

Returns the value of a property attribute given the attribute name.

property_getAttributes

Returns the attribute string of a property.

property_getName

Returns the name of a property.

protocol_addMethodDescription

Adds a method to a protocol.

protocol_addProperty

Adds a property to a protocol that is under construction.

protocol_addProtocol

Adds a registered protocol to another protocol that is under construction.

protocol_conformsToProtocol

Returns a Boolean value that indicates whether one protocol conforms to another protocol.

protocol_copyMethodDescriptionList

Returns an array of method descriptions of methods meeting a given specification for a given protocol.

protocol_copyPropertyList

Returns an array of the properties declared by a protocol.

protocol_copyProtocolList

Returns an array of the protocols adopted by a protocol.

protocol_getMethodDescription

Returns a method description structure for a specified method of a given protocol.

protocol_getName

Returns a the name of a protocol.

protocol_getProperty

Returns the specified property of a given protocol.

protocol_isEqual

Returns a Boolean value that indicates whether two protocols are equal.

sel_getName

Returns the name of the method specified by a given selector.

sel_getUid

Registers a method name with the Objective-C runtime system.

sel_isEqual

Returns a Boolean value that indicates whether two selectors are equal.

sel_registerName

Registers a method with the Objective-C runtime system, maps the method name to a selector, and returns the selector value.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software