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
Forum Update on Monday, May 27th 2025

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 7 Oct 2023, 01:17 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 Oct 2023, 19:08 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

      1/2

      7 Oct 2023, 01:17

      • Login

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