fixed setPositionCursor in cocoa