IOS Dynamic Runtime Runtime < two >

Source: Internet
Author: User

/*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 >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.