macOS - How to customize app delegate and handle menu bar events #6977
Answered
by
JaiganeshKumaran
JaiganeshKumaran
asked this question in
Q&A
-
How do I customize the app delegate in a Uno Platform app to handle menu bar events on macOS? Can I just create my own AppDelegate class? |
Beta Was this translation helpful? Give feedback.
Answered by
JaiganeshKumaran
Sep 6, 2021
Replies: 1 comment 1 reply
-
I was able to add the required methods in the shared app class and export it as an action however I needed to put it inside an #if statement so it won't be compiled for other platforms. This is fine however it also leads to code duplication. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JaiganeshKumaran
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was able to add the required methods in the shared app class and export it as an action however I needed to put it inside an #if statement so it won't be compiled for other platforms. This is fine however it also leads to code duplication.