NSView

class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol
  • Sets the receiver’s tooltip to the style-stripped Markdown string.

    Throws

    A DownErrors 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 file markdownName cannot be read, and a DownErrors 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.

  • Returns the window Quadrant the point is located in.

    Declaration

    Swift

    public var windowQuadrant: Quadrant? { get }

    Parameters

    point

    A point specifying a location in the coordinate system of the window.