-
Notifications
You must be signed in to change notification settings - Fork 517
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
[Nullability] NSView.Window & SuperView should be allowed to be null #21598
Comments
This change would finally resolve the false-positive warnings I get in Rider (at least partly): https://youtrack.jetbrains.com/issue/RSRP-494672 I believe the |
I don't see this declaration anywhere except in the templates xamarin-macios/dotnet/Templates/Microsoft.iOS.Templates/ios-tabbed/AppDelegate.cs Lines 10 to 11 in 9ea3cff
So it looks like this can be manually annotated when creating the project (the template should be fixed to avoid manual fixes in the future). @tipa, am I missing some use case (I have no experience with iOS)? |
by the way, the #21599 will only fix this for macos, not ios. I can add commits in the existing PR or create the new one. |
I've created a PR for iOS as well. |
xamarin-macios/src/appkit.cs
Lines 16088 to 16097 in 9ea3cff
The current implementation of the
NSView.Window
marked as non-nullable. But the Apple docs states that:The same thing with a
NSView.SuperView
- the docs:The text was updated successfully, but these errors were encountered: