Updated OS X function signature to match new iOS signature.
First version of OS X example.