Instance Method

showAttachmentCell(_:in:characterIndex:)

Draws an attachment cell.

Declaration

func showAttachmentCell(_ cell: NSCell, in rect: NSRect, characterIndex attachmentIndex: Int)

Parameters

cell

The attachment cell to draw.

rect

The rectangle within which to draw cell.

attachmentIndex

The location of the attachment cell.

Discussion

The attachmentIndex parameter is provided for cells that alter their appearance based on their location.

See Also

Managing Attachments

var defaultAttachmentScaling: NSImageScaling

The default scaling behavior to the given scaling if an attachment image is too large to fit in a text container.