Instance Method

addFontTrait(_:)

This action method causes the receiver to send its action message up the responder chain.

Declaration

func addFontTrait(_ sender: Any?)

Parameters

sender

The control that sent the message.

Discussion

By default, the action message is changeFont(_:).

When a responder replies by providing a font to convert in a convert(_:) message, the receiver converts the font by adding the trait specified by sender. This trait is determined by sending a tag message to sender and interpreting it as a font trait mask for a convert(_:toHaveTrait:) message.

See Also

Sending Action Methods

func removeFontTrait(Any?)

This action method causes the receiver to send its action message up the responder chain.

func modifyFont(Any?)

This action method causes the receiver to send its action message up the responder chain.

func modifyFontViaPanel(Any?)

This action method causes the receiver to send its action message up the responder chain.

func orderFrontStylesPanel(Any?)

This action method opens the Font styles panel.

func orderFrontFontPanel(Any?)

This action method opens the Font panel by sending it an orderFront(_:) message, creating the Font panel if necessary.