(MacOS) Version 2.1 displays a warning about the state restoration function when the programme is executed.
[ warning message ] 
2024-06-25 06:29:56.243 Python[14458:2546187] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.

As I have no knowledge of this, I asked ChatGPT about this warning and received the following response
Is this an effect of some change in version 2.1?

This warning message relates to the development of macOS applications.Specifically, it indicates that a Python script is utilising native macOS functionality and that the security settings related to the State Restore functionality are not enabled. 
Details are provided below.

NSApplicationDelegate.applicationSupportsSecureRestorableState:.
This is a macOS application delegate method that specifies whether the application supports secure state restoration.
Secure state restoration is the ability to save the application's state and restore it securely on restart.
Cause of warning.
This warning is displayed when a Python script behaves like a macOS application and there are no security settings for state restoration. This usually occurs when using a wrapper library (e.g. PyObjC) to utilise native macOS functionality in Python.
