Hi,
I would need to deactivate my Xojo application to give the focus to the next application in line.
I have tried the following declare but, although I do not get any bug, nothing happens.
Method DoNotBringAppToTop
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 DeactivateMe lib "Cocoa" selector "deactivate" ( appRef as Ptr )
DeactivateMe myApp
Any clues about why this is not working ?
thanks,
Happy Holidays,
Franck