alloy/terminal-notifier — pull request #109 by mikaelbr (2014-09-30 20:35:36+00:00)
Title: Adds feature for checking if user has clicked or on timeout

Hi and thanks for a great app!

I think it would be nice to have a feature where you can define whether or not to wait for user input and return a message if the user activated the notification (clicked) or it timed out.

I hadn't looked at `NSUserNotificationCenter` before, or really programmed in ObjC, so this might be the wrong approach, but I didn't find any way of listening for when the notification ended (timed out). The rather naïve strategy of having a `dispatch_after` with a timeout of 6 seconds seemed like the best way.

The result of this is that you can do something like this:
```shell
➜ terminal-notifier.app ./Contents/MacOS/terminal-notifier -message "foo"
➜ terminal-notifier.app ./Contents/MacOS/terminal-notifier -message "foo" -wait YES
Activated
➜ terminal-notifier.app ./Contents/MacOS/terminal-notifier -message "foo" -wait YES
Timeout
```

Where the `Activated` is printed when the notification bubble is clicked, or `Timeout` is printed after 6 seconds

Any thoughts about this?