# NSImageCell

jagapen@smithlab.chem.wisc.edu
Generated at 2026-02-17 21:02:56 +0000

The image cell class

1999, 2005-2022 Free Software Foundation, Inc.
Software documentation for the NSImageCell class
AppKit/NSImageCell.h

An NSImageCell is a cell that can display a single image. It is normally associated with an NSImageView control; but you can use it as a building block in your own controls.

The image to display is set using the -setImage: method which is inherited from the superclass.

The -setImageAlignment: and -setImageScaling: methods can be used to control how the image is drawn inside a rectangle which is larger or smaller than the image size; the image might need to be scaled, cropped or aligned.

The -setImageFrameStyle: method can be used to control if the cell should display a frame border, and which one.

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
imageAlignment
Returns the alignment used when displaying the image inside a cell that is bigger than the image, and NSScaleToFit has not been selected.
imageFrameStyle
Returns the style used to draw the frame around the image.
imageScaling
Returns the type of image scaling used on the image when the image natural size and the cell size are different.
setImageAlignment:
anAlignment
Sets the alignment used when displaying the image inside a cell that is bigger than the image, and NSScaleToFit has not been selected.
setImageFrameStyle:
aFrameStyle
Sets the style used to draw the frame around the image.
setImageScaling:
scaling
Sets the type of image scaling used on the image when the image natural size and the cell size are different.