NSView
class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol
-
Sets the receiver’s tooltip to the style-stripped Markdown string.
Throws
ADownErrors
error.Declaration
Swift
func enlightenTooltip(markdownString: String) throws
Parameters
markdownString
The CommonMark Markdown string to use for the tooltip.
-
Sets the receiver’s tooltip to the style-stripped Markdown content of a Markdown file.
Throws
An error if the contents of the filemarkdownName
cannot be read, and aDownErrors
error if the CommonMark Markdown string fails to load.Declaration
Swift
func enlightenTooltip(markdownFilename: String, in bundle: Bundle) throws
Parameters
markdownFilename
The name of the CommonMark Markdown file in the provided bundle to use for the tooltip.
bundle
The bundle that contains the Markdown file named
markdownFilename
.