Closed Isaac-Leonard closed 11 months ago
Okay, I've fixed it, I wasn't storing the button anywhere so it was getting dropped Is there any way to enforce in the type system that it can't be dropped if its being displayed?
Unfortunately no, at least not without some significant creative solution that I've not thought of yet (e.g effectively some form of a virtual DOM that's managed for you). It's due to having to work between Rust's lifetime model and the ObjC model.
I would be open to reviewing and considering a solution for this as a feature of the library, provided it's not invalidating the Rust ownership model - but I unfortunately don't have time to work on it myself.
Going to close this issue but feel free to open other ones as you hit issues, always happy to weigh in.
Makes sense I'd love to try implement some sort of framework on top of all this to manage everything like that if I get time.
You're always welcome to pick up and revive Alchemy. ;)
I just got started with cacao today so am probably missing something but I can't seem to get the button to fire when clicked. Here is my code:
No matter what I do the button refuses to call the action when I click on it, is this a bug or have I missed something? It may be relevant that I am using VoiceOver, the macOS screen reader, but have tested without it and still have the same issue so don't think its related.