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

MenuItem's objc pointer is private #118

Closed
0123456789-jpg opened this issue Feb 7, 2024 · 2 comments
Closed

MenuItem's objc pointer is private #118

0123456789-jpg opened this issue Feb 7, 2024 · 2 comments

Comments

@0123456789-jpg
Copy link

I recently found that the objc pointer held in cacao::appkit::menu::MenuItem is private when i want to do sth on the objc side.
Does anyone know why it's private?

@ryanmcgrath
Copy link
Owner

I'm confused - are you talking about this?

Custom(Id<Object, Owned>),

I feel like you should be able to just match on that enum and handle accordingly.

@0123456789-jpg
Copy link
Author

That's exactly what i want to say. My code works fine now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants