Fix minor issues in the CocoaApplication example.

Change-Id: Idd2a49381f013710d72e05d9b1781b47ce70750f
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>