The color of a cursor can be changed by sending the recolorCursor:backgroundColor: message to a CgCursor object. The color arguments are specified using CgRGBColor objects. Class CgRGBColor is described in more detail in "Specifying colors". The following example illustrates how to recolor a font cursor so that the foreground is red and the background is blue.
|