Objective-C Runtime

These functions are used to obtain Objective-C runtime data types such as selectors and class objects. NSLog and NSLogv are used to print information to the standard output of an application.

NSClassFromString

Class NSClassFromString(NSString *aClassName)

NSGetSizeAndAlignment

const char *NSGetSizeAndAlignment(const char *typePtr, unsigned int *sizep, unsigned int *alignp)

NSLog

void NSLog(NSString *format, ...)

NSLogv

void NSLogv(NSString *format, va_list args)

NSSelectorFromString

SEL NSSelectorFromString(NSString *aSelectorName)

NSStringFromClass

NSString *NSStringFromClass(Class aClass)

NSStringFromSelector

NSString *NSStringFromSelector(SEL aSelector)

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.