Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Access NSApplicationDelegate qnativeinterface on MacOs
QtWS25 Last Chance

Access NSApplicationDelegate qnativeinterface on MacOs

Scheduled Pinned Locked Moved Unsolved Qt 6
2 Posts 2 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    myk321
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      If I am not mistaken, something like described in this bug report should be enough.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved