Dockyard > Objective-C Classes > ImageAndTextCell
Class Description
Displays an icon next to the text, similar to Finder's list view. Because ImageAndTextCell is a subclass of NSTextFieldCell, it retains all of the text formatting abilities of its superclass. Also supports setting an alternate icon for when the cell is highlighted. This class was created by Apple as part of the DragNDropOutlineView example, although it was modified slightly by Belkadan Software for use in Dockyard Manager.
By
Methods
Method Detail
- (NSImage *)alternateImage
Returns the cell's alternate image. This image is displayed when the cell is highlighted (if it exists).
See also: image, currentImage, setAlternateImage:
- (NSImage *)currentImage
Returns the image currently being displayed. If the cell is highlighted and an alternate image has been set, the image returned is the alternate image. Otherwise, it is the regular image.
See also: image, alternateImage
- (NSImage *)image
Returns the cell's regular image. This image is displayed when the cell is not highlighted, or always if there is no alternate image.
See also: alternateImage, currentImage, setImage:
- (void)setAlternateImage:(NSImage *)anImage
Sets the cell's alternate image to anImage. If anImage is nil, clears the alternate image.
See also: alternateImage, setImage:
- (void)setImage:(NSImage *)anImage
Sets the cell's regular image to anImage. If anImage is nil, clears the regular image.
See also: image, setAlternateImage:
This page was generated with DocYouMeant, a program created by Belkadan Software