Implemented show/hide cursor in cocoa.