We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1080ea commit 8e23fdfCopy full SHA for 8e23fdf
1 file changed
framework-crates/objc2-app-kit/translation-config.toml
@@ -468,7 +468,11 @@ class.NSPanel.methods."initWithContentRect:styleMask:backing:defer:screen:".unsa
468
class.NSView.methods."setCanDrawConcurrently:".unsafe = true
469
class.NSWindow.methods."setAllowsConcurrentViewDrawing:".unsafe = true
470
471
-# TODO(breaking): Might need to be unsafe, if this is truly unretained?
+# This is `unsafe_unretained`, but `NSWindow` sets it on its child views upon
472
+# deallocation (and there is no exposed `setWindow:` method), so it will
473
+# always either be a valid window, or NULL.
474
+#
475
+# (It's effectively a weak pointer).
476
class.NSView.methods.window.unsafe = false
477
478
# Documentation says that you shouldn't create cycles (though unsure if UB?).
0 commit comments