Instance Method

convertAttributes:

Converts attributes in response to an object initiating an attribute change, typically the Font panel or Font menu.

Declaration

- (NSDictionary<NSString *,id> *)convertAttributes:(NSDictionary<NSString *,id> *)attributes;

Parameters

attributes

The current attributes.

Return Value

The converted attributes, or attributes itself if the conversion isn’t possible.

Discussion

Attributes unused by the sender should not be changed or removed.

This method is usually invoked on the sender of changeAttributes:. See Working with the Font Manager for more information.

See Also

Setting Attributes

- setSelectedAttributes:isMultiple:

Informs the paragraph and character formatting panels when text in a selection has changed attributes.