Protocol

NSImageDelegate

The NSImageDelegate protocol defines the optional methods implemented by delegates of NSImage objects.

Symbols

Responding to Drawing Failure

func imageDidNotDraw(NSImage, in: NSRect)

Sent to the delegate when the image object is unable, for whatever reason, to lock focus on its image or draw in the specified rectangle.

Managing Incremental Loads

func image(NSImage, didLoadPartOfRepresentation: NSImageRep, withValidRows: Int)

During incremental loading, this method is called repeatedly to inform the delegate that more of the image data is available.

func image(NSImage, didLoadRepresentation: NSImageRep, with: NSImageLoadStatus)

For incremental loading, this method is invoked when the specified image has been loaded and decompressed as fully as is possible.

func image(NSImage, didLoadRepresentationHeader: NSImageRep)

During incremental loading, this method is called once enough data has been read to determine the size of the image.

func image(NSImage, willLoadRepresentation: NSImageRep)

For incremental loading, this method is invoked when you first attempt to draw the image or otherwise access the bitmap data.

Relationships

Inherits From