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.

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