Contents

overlayView(_:menu:willHighlight:)

Notifies your app that the given menu item is highlighted.

Declaration

@MainActor func overlayView(_ overlayView: ImageAnalysisOverlayView, menu: NSMenu, willHighlight menuItem: NSMenuItem?)

Parameters

  • overlayView:

    The associated overlay view for the menu.

  • menu:

    The menu that contains the highlighted items.

  • menuItem:

    The menu item that is highlighted, or nil if the menu item removes its highlight.

See Also

Responding to key and menu events