I create the app simple. the app just remind work. I have problem how to my Alert always show pop up all other app. I tried code but my alert will hide when use other app I want my alert look like this alert in image
I tried code
let myPopup: NSAlert = NSAlert()
myPopup.messageText = "Notification"
myPopup.informativeText = "Hello world"
myPopup.alertStyle = NSAlertStyle.WarningAlertStyle
You can modify the windowLevel property of your alerts
NSModalPanelWindowLevel should give the desired effect.