wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
5.77k stars 1.7k forks source link

Implement, at least trivially, `NSApplicationDelegate.applicationSupportsSecureRestorableState` #24515

Closed vadz closed 2 weeks ago

vadz commented 2 weeks ago

Since updating to macOS 14.x, I'm getting the following warning on wx application startup:

WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.

From what I can see, we wouldn't lose anything by doing what it wants, i.e. implementing this method and just returning YES from it, because I don't think we customize (or even support) restoring state anyhow.

But @csomor please let me know if I'm missing anything.

csomor commented 2 weeks ago

@vadz yes, just returning yes is ok, as we didn't customize state restoration