Skip to content

[Nullability] NSView.Window & SuperView should be allowed to be null #21598

@snechaev

Description

@snechaev

https://github.com/xamarin/xamarin-macios/blob/9ea3cff36c86b1c3c46fb0872543165046b507a8/src/appkit.cs#L16088-L16097

The current implementation of the NSView.Window marked as non-nullable. But the Apple docs states that:

The value of this property is nil if the view is not currently installed in a window.

The same thing with a NSView.SuperView - the docs:

The value of this property is nil when the view is not installed in a view hierarchy.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions