Hi,
I have my app set to be on top with regards to the Z-order, by using the following code in the app’s open event handler:
// FORCE THE Z-ORDER TO BE ON TOP OF ANY OTHER WINDOWS
Declare Function NSClassFromString Lib "Cocoa" ( inName As CFStringRef ) As Ptr
Declare Function sharedApplication Lib "Cocoa" selector "sharedApplication" ( classRef As Ptr ) As Ptr
Dim myApp As Ptr = sharedApplication( NSClassFromString( "NSApplication" ) )
Declare Sub activateIgnoringOtherApps Lib "Cocoa" selector "activateIgnoringOtherApps:" ( appRef As Ptr, flag As Boolean )
activateIgnoringOtherApps( myApp, True )
However, when I launch other windows from my app - they appear underneath any windows from other apps which I may have on screen.
Is there any way to set ALL of my app’s windows to be on top of any other app’s windows?
Do I need to add code to each of the window’s open events? If so, what code?
Thank you all in advance.
(macOS 11)