Function

NSClassFromString

Obtains a class by name.

Declaration

Class NSClassFromString(NSString *aClassName);

Parameters

aClassName

The name of a class.

Return Value

The class object named by aClassName, or nil if no class by that name is currently loaded. If aClassName is nil, returns nil.

See Also

Type Lookup

NSStringFromClass

Returns the name of a class as a string.

NSSelectorFromString

Returns the selector with a given name.

NSStringFromSelector

Returns a string representation of a given selector.

NSStringFromProtocol

Returns the name of a protocol as a string.

NSProtocolFromString

Returns a the protocol with a given name.