Instance Method

helpRequested(with:)

Overridden by subclasses to implement specialized context-sensitive help behavior.

Declaration

func helpRequested(with eventPtr: NSEvent)

Parameters

event

An NSEvent object representing the event associated with the help request.

Discussion

Subclasses in their implementation of this method should cause the Help Manager (NSHelpManager) to display the help associated with the menu. Never invoke this method directly.

Special Considerations

In macOS 10.6 and later this method has no effect. This method may be deprecated in a future release.

See Also

Displaying Context-Sensitive Help

class func popUpContextMenu(NSMenu, with: NSEvent, for: NSView)

Displays a contextual menu over a view for an event.

class func popUpContextMenu(NSMenu, with: NSEvent, for: NSView, with: NSFont?)

Displays a contextual menu over a view for an event using a specified font.