I found something and potential solution. The NSPopover is created inside a windowController (window A). If I click in window A after opening the popover, all tooltips work correctly. What is the reason ? Could it be I did not set delegate for the popover ? I have tried to no avail I tried to make the window front and key No success either So there would be a workaround: simulate a click in window A What is the simplest way to achieve this click programmatically (if possible without showing mouse movement) ? Should I use mouseEvent(with:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure:) and then postEvent(_:atStart:)
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: