Created
October 5, 2015 18:52
-
-
Save ejdyksen/f11f55bd0ffdf9d1cc8b to your computer and use it in GitHub Desktop.
Revisions
-
ejdyksen created this gist
Oct 5, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ let notificationCenter = NSUserNotificationCenter.defaultUserNotificationCenter() let notification = NSUserNotification() notification.title = "Hello" notification.informativeText = "This is a test" notification.soundName = NSUserNotificationDefaultSoundName notification.userInfo = ["key": "value"] notificationCenter.deliverNotification(notification) print("Done")