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

MainThreadOnly on generic classes #674

Open
madsmtm opened this issue Dec 5, 2024 · 0 comments
Open

MainThreadOnly on generic classes #674

madsmtm opened this issue Dec 5, 2024 · 0 comments
Labels
A-framework Affects the framework crates and the translator for them bug Something isn't working

Comments

@madsmtm
Copy link
Owner

madsmtm commented Dec 5, 2024

NSCollectionViewDiffableDataSource isn't MainThreadOnly, so does not implement NSCollectionViewDataSource since that has MainThreadOnly as a super trait.

I'm not entirely sure to resolve that? Maybe generic types need to implement MainThreadOnly if all their generics do? Though this would also allow NSArray<NSVIew> to be MainThreadOnly, which isn't desirable, since that would allow <NSArray<NSView>>::new().mtm().

See also discussion on Matrix.

@madsmtm madsmtm added bug Something isn't working A-framework Affects the framework crates and the translator for them labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-framework Affects the framework crates and the translator for them bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant