A display of image data from an NSImage
object in a frame.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
class NSImageView : NSControl
Overview
Image views can be static or editable. A static image view only displays the image that you specify. An editable image view object lets the user change the displayed image. You can also configure an image view to allow copying, pasting, deleting, and dragging of the image.
Note
An image view calls its action method only when the user drags an image into the image view's bounds, and the image view must be editable to receive dragged images. If you want to display an image and respond to clicks in the image, use an NSButton object instead.