Skip to content

Keep a reference to ApplicationDelegate in NSWindowDelegate and NSView#3684

Merged
kchibisov merged 1 commit intomasterfrom
madsmtm/keep-delegate-around
May 6, 2024
Merged

Keep a reference to ApplicationDelegate in NSWindowDelegate and NSView#3684
kchibisov merged 1 commit intomasterfrom
madsmtm/keep-delegate-around

Conversation

@madsmtm
Copy link
Copy Markdown
Member

@madsmtm madsmtm commented May 5, 2024

The delegate is only weakly referenced by NSApplication, so getting it from there may fail if the event loop has been dropped.

Fixes #3668.

  • Tested on all platforms changed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

@madsmtm madsmtm added DS - appkit Affects the AppKit/macOS backend B - crash The bug results in crashing labels May 5, 2024
@kchibisov kchibisov added this to the Version 0.30.1 milestone May 6, 2024
The delegate is only weakly referenced by NSApplication, so getting it
from there may fail if the event loop has been dropped.

Fixes #3668.
@kchibisov kchibisov force-pushed the madsmtm/keep-delegate-around branch from d1a593c to d24be64 Compare May 6, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B - crash The bug results in crashing DS - appkit Affects the AppKit/macOS backend

Development

Successfully merging this pull request may close these issues.

winit 0.30 panics on exit on macOS

2 participants