Instance Method

modifyFont:

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

Declaration

- (void)modifyFont:(id)sender;

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 convertFont: message, the receiver converts the font in the manner specified by sender. The conversion is determined by sending a tag message to sender and invoking a corresponding method:

Sender’s Tag

Method Used

NSNoFontChangeAction

None; the font is returned unchanged.

NSViaPanelFontAction

The Font panel’s panelConvertFont:.

NSAddTraitFontAction

convertFont:toHaveTrait:.

NSRemoveTraitFontAction

convertFont:toNotHaveTrait:.

NSSizeUpFontAction

convertFont:toSize:.

NSSizeDownFontAction

convertFont:toSize:.

NSHeavierFontAction

convertWeight:ofFont:.

NSLighterFontAction

convertWeight:ofFont:.

See Also

Sending Action Methods

- addFontTrait:

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

- removeFontTrait:

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

- modifyFontViaPanel:

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

- orderFrontStylesPanel:

This action method opens the Font styles panel.

- orderFrontFontPanel:

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