Hi all,
I wanted to show some status in nsmenuitem for my application. something like Battery shows %.
I am new to Mac UI development, please suggest ways to achieve it.
Thanks, Nitesh
Hi all,
I wanted to show some status in nsmenuitem for my application. something like Battery shows %.
I am new to Mac UI development, please suggest ways to achieve it.
Thanks, Nitesh
The traditional way to do this is with an NSStatusItem
; see the docs here.
ps SwiftUI is adding support for this in macOS 13 beta.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"