Protocol

NSTextAttachmentContainer

A set of methods that defines the interface to text attachment objects from NSLayoutManager.

Declaration

@protocol NSTextAttachmentContainer

Topics

New Methods

- attachmentBoundsForTextContainer:proposedLineFragment:glyphPosition:characterIndex:

Returns the layout bounds of the text attachment to the layout manager.

Required.

- imageForBounds:textContainer:characterIndex:

Returns the image object rendered by the layout manager in the given image bounds rectangle inside the text container.

Required.

Relationships

Inherits From

Conforming Types

See Also

Attachments

NSTextAttachment

The values for the attachment attributes of attributed strings and related objects.