1

Is there an open source reimplementation of UITextView and UITextField using Core Text?

There's Apple's SimpleTextInput with SimpleCoreTextView and EditableCoreTextView classes, which explicitly says:

     File: SimpleCoreTextView.m
 Abstract: 

 A view that draws text, reasons about layout, and manages a selection over its text range.

 IMPORTANT: Its use of CoreText is naive and inefficient, it deals only with
 left-to-right text layout, and it is by no means a good template for any text
 editor.  It is a toy implementation included only to illustrate how to bind
 the system keyboard to some pre-existing text editor.

In other words, it doesn't handle e.g. Arabic, and is inefficient.

What alternatives do we have for a complete implementation of an editable text field or text view, based on Core Text and UITextInput family of protocols?

Ivan Vučica
  • 9,529
  • 9
  • 60
  • 111

1 Answers1

1

You can use or refer OmniGroup's TextEditor for implementation of an editable text field or text view, based on Core Text and UITextInput

atrane
  • 398
  • 6
  • 20
  • From what I can see, the majority of code is in `OUIEditableFrame.m`, right? https://github.com/omnigroup/OmniGroup/blob/master/Frameworks/OmniUI/iPad/OUIEditableFrame.m -- Ouch -- that's lengthy. I won't be trying this out any time soon, but I'll accept the answer. Thanks! – Ivan Vučica Oct 19 '12 at 13:27