Contents

NSImageCell

An NSImageCell object displays a single image (encapsulated in an Nsimage object) in a frame. This class provides methods for choosing the frame and for aligning and scaling the image to fit the frame.

Declaration

class NSImageCell

Overview

The object value of an NSImageCell object must be an NSImage object, so if you use the objectValue method of NSCell, be sure to supply an NSImage object as an argument. Because an NSImage object does not need to be converted for display, do not use the NSCell methods relating to formatters.

An NSImageCell object is usually associated with some kind of control object. For example, an NSMatrix or an NSTableView.

Designated Initializers

When subclassing NSImageCell you must implement all of the designated initializers. Those methods are: init, init(coder:), init(textCell:), and init(imageCell:).

Topics

Aligning and Scaling the Image

Choosing the Frame

Constants