O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required