Deprecated Objective-C Runtime Functions

A function identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in OS X v10.5

class_setSuperclass

Sets the superclass of a given class. (Deprecated in OS X v10.5.)

Class class_setSuperclass(Class cls, Class newSuper)
Parameters
cls

The class whose superclass you want to set.

newSuper

The new superclass for cls.

Return Value

The old superclass for cls.

Special Considerations

You should not use this function.

Availability
  • Available in OS X v10.5 and later.
  • Deprecated in OS X v10.5.
Declared In
objc/runtime.h