Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toga apps generate warning on macOS 14 (Sonoma) #2188

Closed
freakboy3742 opened this issue Nov 2, 2023 · 0 comments · Fixed by #2182
Closed

Toga apps generate warning on macOS 14 (Sonoma) #2188

freakboy3742 opened this issue Nov 2, 2023 · 0 comments · Fixed by #2182
Labels
bug A crash or error in behavior. macOS The issue relates to Apple macOS support.

Comments

@freakboy3742
Copy link
Member

Describe the bug

Reported by Casimir1965 on Discord.

When running on macOS 14 (Sonoma), Toga apps generate a warning:

2023-11-02 11:10:34.900 Python[83553:21023244] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.

Steps to reproduce

At this point, somewhat unclear. As originally reported, it was "any Toga app"; however, based on this feedback it appears to not affect Toga apps running from the command line.

Based on reading between the lines of the AppKit release notes, the problem may only affect apps deployed with Briefcase.

Expected behavior

No preventable warning is generated by a Toga app.

Screenshots

No response

Environment

  • Operating System: macOS 14 (Sonoma)
  • Python version: ?
  • Software versions:
    • Briefcase: ?
    • Toga: ?

Logs

2023-11-02 11:10:34.900 Python[83553:21023244] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.

Additional context

No response

@freakboy3742 freakboy3742 added the bug A crash or error in behavior. label Nov 2, 2023
@freakboy3742 freakboy3742 added not quite right The idea or PR has been reviewed, but more work is needed. macOS The issue relates to Apple macOS support. labels Nov 2, 2023
@freakboy3742 freakboy3742 removed the not quite right The idea or PR has been reviewed, but more work is needed. label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A crash or error in behavior. macOS The issue relates to Apple macOS support.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant