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

Closed
rolfbjarne opened this issue Feb 3, 2022 · 1 comment · Fixed by #20583
Closed

Figure out how to bind constructors in protocols #14039

rolfbjarne opened this issue Feb 3, 2022 · 1 comment · Fixed by #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.

@rolfbjarne rolfbjarne modified the milestones: Future, .NET 9 May 24, 2024
rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue May 24, 2024
…bit.

* Create strong enums for NSPasteboardType and NSPasteboardName.
* Bind the NSPasteboardReading constructor.

Ref: xamarin#14039
rolfbjarne added a commit that referenced this issue May 30, 2024
…bit. (#20643)

* Create strong enums for NSPasteboardType and NSPasteboardName.
* Bind the NSPasteboardReading constructor.

Ref: #14039
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
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant