Instance Method

cellSize()

Returns the size of the attachment’s icon.

Required.

Declaration

func cellSize() -> NSSize

See Also

Proiding the Cell Metrics

func cellBaselineOffset() -> NSPoint

Returns the text position where you draw the attachment cell’s image, relative to the current point established in the glyph layout.

Required.

func cellFrame(for: NSTextContainer, proposedLineFragment: NSRect, glyphPosition: NSPoint, characterIndex: Int) -> NSRect

Returns the frame of the cell to draw at the specified position in a text container.

Required.