docs: simple cocoa API usage example
docs: cocoa example uses wakeup callback API

Also, imitate the qt example somewhat.