Inherits From:
NSControl: NSView: NSResponder: NSObject
Conforms To:
NSCoding (from NSResponder)
NSObject (from NSObject)
Declared In:
AppKit/NSImageView.h
For an NSControl, NSImageView is quite limited in its ability to respond to user events: the only thing a user can do is drag in a new image. When it receives the new image, the NSImageView replaces its old image and sends its action message to its target. Even this low level of interactivity can be disabled: you can send the NSImageView the message setEditable:
NO.
For more information, see the class specification for NSImageCell.
image
Returns the NSImage displayed by the NSImageView.
See also:
- setImage:
imageAlignment
Returns the position of the cell's image in the frame. For a list of possible alignments, see setImageAlignment:
.
imageFrameStyle
Returns the style of frame that appears around the image. For a list of frame styles, see setImageFrameStyle:
.
imageScaling
Returns the way that the cell's image alters to fit the frame. For a list of possible values, see setImageScaling:
.
isEditable
Returns whether the user can drag a new image into the frame. The default is YES.
See also:
- setEditable:
setEditable:
(BOOL)flag
Specifies whether the user can drag a new image into the frame.
See also:
- isEditable
setImage:
(NSImage *)image
Lets you specify the image that the NSImageView displays.
See also:
- image
setImageAlignment:
(NSImageAlignment)alignment
Lets you specify the position of the image in the frame. The possible alignments are:
See also:
- imageAlignment
setImageFrameStyle:
(NSImageFrameStyle)frameStyle
Lets you specify the kind of frame that borders the image . The possible styles are:
See also:
- imageFrameStyle
setImageScaling:
(NSImageScaling)scaling
Lets you specify the way that the image alters to fit the frame. The possible values are:
See also:
- imageScaling