Bug 741959 - text input broken on OS X 10.5 from 2.24.19 onwards

Alias insertText:replacementRange: to insertText: for SDK > 10.6,
and implement insertText: for SDK < 10.6.