/*working with Classes*//** * Returns The name of a class. * * @param CLS a Class object. * @return the name of the class, or the empty str ing if \e cls is \c Nil. */Objc_exportConst Char*Class_getname (class CLS) __osx_available_starting (__mac_10_5, __iphone_2_0);/** * Returns A Boolean value that indicates whether a class object is a metaclass. * * @param CLS a class object. * * @return \c YES If \e cls is a metaclass, \c No if \e cls are a Non-meta class, * \c NO if \e cls is \c Nil. */Objc_export BOOL Class_ismetaclass (class CLS) __osx_available_starting (__mac_10_5, __iphone_2_0);/** * Returns The superclass of a class. * * @param CLS a Class object. * @return The superclass of the class, or \ C Nil If * \e CLS is a root class, or \c nil if \e CLS is \c nil. * * @note should usually use \c nsobject ' s \c Superclass method instead of the This function. */Objc_export class Class_getsuperclass (class CLS) __osx_available_starting (__mac_10_5, __iphone_2_0);/** * Sets the superclass of a given class. * @param cls The class whose superclass you want to set. * @param newsup Er the new superclass for CLS. * * @return The old superclass for CLS. * * @warning You should don't use the This function. */Objc_export class Class_setsuperclass (class CLS, Class Newsuper) __osx_available_but_deprecated (__mac_10_5,__mac _10_5, __iphone_2_0,__iphone_2_0);/** * Returns The version number of a class definition. * * @param CLS A pointer to a \c class data structure. Pass * The class definition for which your wish to obtain the version. * * @return An integer indicating the version number of the class definition. * * @see class_setversion*/Objc_exportintclass_getversion (class CLS) __osx_available_starting (__mac_10_0, __iphone_2_0);/** * Sets the version number of a class definition. * * @param CLS A pointer to an class data structure. * Pass the class definition for which your wish to set the version. * @param version an integer. Pass the new version number of the class definition. * * @note You can use the version number of the class definition to provide versioning of the * interface that your class Represents to other classes. This is especially useful-object * serialization (that's, archiving of the object in a flattened form), where it's Important to * recognize changes to the layout of the instance variables in different class-definition versions. * @note Classes derived from the Foundation framework \c NSObject class can set the Class-definition * version number USI ng the \c Setversion:class method, which is implemented using the \c class_setversion function. */Objc_exportvoidClass_setversion (Class CLS,intversion) __osx_available_starting (__mac_10_0, __iphone_2_0);/** * Returns The size of instances of a class. * * @param CLS a Class object. * @return the size in bytes of Insta NCEs of the class \e CLS, or \c 0 if \e cls is \c Nil. */objc_export size_t Class_getinstancesize (class CLS) __osx_available_starting (__mac_10_5, __iphone_2_0);
IOS Dynamic Runtime Runtime < two >