Class

NSImage​View

An NSImage​View object displays image data from an NSImage object in a frame. An editable image view object behaves as an image well and supports copying, pasting, dragging, and using the Delete key to clear its content. Note that an image view performs its action only when it’s editable and a user drags an image to it. To allow users to perform a custom action when they click an image, use a button.

Symbols

Specifying the Image

var image:​ NSImage?

The image displayed by the image view.

Specifying the Visual Characteristics

var image​Frame​Style:​ NSImage​Frame​Style

The style of frame that appears around the image.

var image​Alignment:​ NSImage​Alignment

The alignment of the cell’s image inside the image view.

var image​Scaling:​ NSImage​Scaling

The scaling mode applied to make the cell’s image fit the frame of the image view.

var animates:​ Bool

A Boolean value indicating whether the image view automatically plays animated images.

Responding to User Events

var is​Editable:​ Bool

A Boolean value indicating whether the user can drag a new image into the image view.

var allows​Cut​Copy​Paste:​ Bool

A Boolean value indicating whether the image view lets the user cut, copy, and paste the image contents.