Skip to content
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

Figure out how to bind constructors in protocols #14039

Open
rolfbjarne opened this issue Feb 3, 2022 · 1 comment · May be fixed by #16293 or #20583
Open

Figure out how to bind constructors in protocols #14039

rolfbjarne opened this issue Feb 3, 2022 · 1 comment · May be fixed by #16293 or #20583
Labels
feature A feature to be implemented
Milestone

Comments

@rolfbjarne
Copy link
Member

See:

xamarin-macios/src/appkit.cs

Lines 11469 to 11478 in adff9df

#if !XAMCORE_4_0
// This binding is just broken, it's an ObjC ctor (init*) bound as a normal method.
[Abstract]
[Export ("xamarinselector:removed:")]
[Obsolete ("It will never be called.")]
NSObject InitWithPasteboardPropertyList (NSObject propertyList, string type);
#else
#error FIXME: (compiler error to not forget)
#error FIXME: figure out how to bind constructors in protocols.
#endif

@rolfbjarne rolfbjarne added the feature A feature to be implemented label Feb 3, 2022
@rolfbjarne rolfbjarne added this to the Future milestone Feb 3, 2022
@rolfbjarne
Copy link
Member Author

See #13294 and #16293.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A feature to be implemented
Projects
None yet
1 participant