somGetClass

      Gets the class object of a specified object. The receiver of the method is the object whose class is desired. The method returns a pointer to the object's corresponding class object.
    somGetClassName
      Obtains the class name of an object. The receiver of the method is the object whose class name is desired. The method returns a pointer to the name of the class of which the specified object is an instance.
    somGetSize
      Obtains the size of an object. The receiver of the method is the object. The method returns the amount of contiguous space, in bytes, that is needed to hold the object itself (not including any additional space that the object may be using or managing outside of this area).
    somIsA
      Determines whether an object is an instance of a given class or of one of its descendant classes. The receiver of the method is the object to be tested. An additional argument is the name of the class to which the object will be compared. This method returns TRUE if the object is an instance of the specified class or if (unlike somIsInstanceOf) it is an instance of any descendant class of the given class; otherwise, the method returns FALSE.
    somIsInstanceOf
      Determines whether an object is an instance of a specific class (but not of any descendant class).The receiver of the method is the object. The argument is the name of the class to which the object will be compared. The method returns TRUE if the object is an instance of the specified class, or FALSE otherwise.
    somRespondsTo
      Determines whether an object supports a given method. The receiver of the method is the object. The argument is the somId for the method in question. (A somId can be obtained from a string by using the somIdFromString function.) The somRespondsTo method returns TRUE if the object supports the method, or FALSE otherwise.


    [Back] [Next]