Anonymous

My feedback

  1. 4,644 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    680 comments  ·  Public » Notifications  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    Anonymous commented  · 

    let notification = NSUserNotification()
    notification.identifier = message.uuid
    notification.title = message.user.name
    notification.subtitle = "message.content
    notification.soundName = NSUserNotificationDefaultSoundName

    let notificationCenter = NSUserNotificationCenter.defaultUserNotificationCenter()
    notificationCenter.deliverNotification(notification)

    Apparently takes Microsoft years to write, so here's a template, please delete the crap you currently use and use this snippet instead.

    Anonymous supported this idea  · 

Feedback and Knowledge Base