Contents

IOObjectCopySuperclassForClass(_:)

Return the superclass name of the given class.

Declaration

func IOObjectCopySuperclassForClass(_ classname: CFString!) -> Unmanaged<CFString>!

Parameters

  • classname:

    The name of the class as a CFString.

Return Value

The resulting CFStringRef. This should be released by the caller. If there is no superclass, or a valid class name is not passed in, then NULL is returned.

Discussion

This function uses the OSMetaClass system in the kernel to derive the name of the superclass of the class.

See Also

Miscellaneous