2018-08-06 14:17:04 +08:00
//
// N S U s e r N o t i f i c a t i o n C e n t e r + E x t e n s i o n . s w i f t
// C l a s h X
//
// C r e a t e d b y C Y C o n 2 0 1 8 / 8 / 6 .
2018-08-08 13:47:38 +08:00
// C o p y r i g h t © 2 0 1 8 年 y i c h e n g c h e n . A l l r i g h t s r e s e r v e d .
2018-08-06 14:17:04 +08:00
//
import Cocoa
extension NSUserNotificationCenter {
func post ( title : String , info : String ) {
let notification = NSUserNotification ( )
notification . title = title
notification . informativeText = info
self . deliver ( notification )
}
2018-08-11 23:07:51 +08:00
func postGenerateSimpleConfigNotice ( ) {
self . post ( title : " No External-controller specified in config file! " , info : " We have replace current config with a simple config with external-controller specified! " )
}
2018-08-06 14:17:04 +08:00
}