Access NSApplicationDelegate qnativeinterface on MacOs
-
If I startup my application in the MacOs terminal get the following warning: WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
See Qt6 access native interface via qnativeinterface: https://doc-snapshots.qt.io/qt6-dev/native-interfaces.html
Examples seem limited to rendering interfaces and it's not obvious to me how to access NSApplicationDelegate.See that a similar question was asked previously using what looks like an older Qt interface: https://forum.qt.io/topic/102089/macos-how-to-get-access-to-the-nsapplicationdelegate?_=1696640893944
Googling has not given any further insight.
Any suggestions on how to access NSApplicationDelegate via qnativeinterface, or more broadly how to address the warning?
MacOs Sonoma 14.0
Xcode 15
Qt 6.6.0rc -
Hi,
If I am not mistaken, something like described in this bug report should be enough.
Hope it helps