I use NSTrackingArea and monitor mouseEntered to simulate hover of the NSButton.
But I met a problem between two windows. I have a first window A that was a modal window, then I click a button of window A and popup a window B as a dialog (NSPanel with workWhenModal = true). No matter I use [modal] or [show] setting in segue, I got similar result, when hover is available in window A, then it failed on button of window B. If hover is available in window B, then it failed on button of window A.
Is there any way that I can detect mouse move event in both window correctly? Or I need to have different implementation to make mouse move event been detected in both window?
Thanks,
Eric
But I met a problem between two windows. I have a first window A that was a modal window, then I click a button of window A and popup a window B as a dialog (NSPanel with workWhenModal = true). No matter I use [modal] or [show] setting in segue, I got similar result, when hover is available in window A, then it failed on button of window B. If hover is available in window B, then it failed on button of window A.
Is there any way that I can detect mouse move event in both window correctly? Or I need to have different implementation to make mouse move event been detected in both window?
Thanks,
Eric