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.
This commit is contained in:
Holin
2014-12-28 10:46:13 -08:00
committed by John Ralls
parent 456f80a0cf
commit e48ae6f85b

View File

@ -186,7 +186,15 @@
[self performSelector: aSelector];
}
/* This gets called on OS X 10.6 and upwards from interpretKeyEvents */
-(void)insertText: (id)aString replacementRange: (NSRange)replacementRange
{
[self insertText:aString];
}
/* This gets called on OS X 10.5 from interpretKeyEvents, although 10.5
* is supposed to support NSTextInputClient */
-(void)insertText: (id)aString
{
GDK_NOTE (EVENTS, g_print ("insertText\n"));
const char *str;