(You may notice that NSTextView inherits from NSText. The reasons for this are arcane. Your NSTextInput class must not inherit from NSText.)