Instance Method

cellBaselineOffset()

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

Required.

Declaration

func cellBaselineOffset() -> NSPoint

Discussion

The image should be drawn so its lower-left corner lies on this point.

See Also

Cell size and position

func cellSize()

Returns the size of the attachment’s icon.

Required.

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

Returns the frame of the cell as it would be drawn as the character at the given glyph position, and character index, charIndex, in textContainer.

Required.