Contents

selectionManager(_:frameOfTextContainerAt:)

Returns the frame of the text container at the specified point.

Declaration

optional func selectionManager(_ selectionManager: NSTextSelectionManager, frameOfTextContainerAt point: NSPoint) -> NSRect

Parameters

  • selectionManager:

    The selection manager requesting the frame.

  • point:

    The point in the view’s coordinate system.

Return Value

The frame of the text container at the point, in the text container’s coordinate system, or NSZeroRect if no container exists there.

Discussion

Implement this method to support layouts with multiple text containers. For full multiple-text-container support, also implement selectionManager:locationOfTextContainerAtPoint:.