Added setPositionCursor in cocoa