I want to create an osx / cocoa application on my mac, which makes something very simple: display a text string on my mac, without background. Ultimately, it will be a timer that appears as an overlay on top of other windows, without being too intrusive.
I tried setting window.backgroundColor = NSColor(red: 1.0, green:0.5, blue:0.5, alpha: 0.5) (see alpha 0.5), to applicationDidFinishLaunching , but that would not turn it into something remotely transparent.
Any good soul want to suggest a way to do this?
cocoa swift macos
sagism
source share