KEMBAR78
NSStoryboard.instantiateController(identifier:handler:) method returns a type mismatch error. · Issue #23373 · dotnet/macios · GitHub
Skip to content

NSStoryboard.instantiateController(identifier:handler:) method returns a type mismatch error. #23373

@StingKo

Description

@StingKo

Apple platform

macOS

Framework version

net9.0-*

Affected platform version

.Net 9

Description

NSStoryboard.instantiateController(identifier:handler:) method returns a type mismatch error., causing managed reference conflicts

Steps to Reproduce

In Objective-C, the
instantiateControllerWithIdentifier:creator:
method returns an id type,
whereas in .NET for Mac
NSStoryboard.instantiateController(identifier:handler:)
it returns an NSViewController.

This causes the method to be unable to initialize an NSWindowController.

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-bindingsbugIf an issue is a bug or a pull request a bug fix

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions