![]() A text view provides the front end to the text system. Typically, a text view is an instance of NSTextView or a subclass. Text editing is performed by a text view object. In extreme cases where the capabilities of the text system are not suitable, you can replace the text view with a custom subclass. You can implement more control through the Cocoa mechanisms of notification and delegation. Text system classes provide methods to control many of the ways in which they perform editing. The text system provides a number of control points where you can customize the editing behavior: It is important to understand this mechanism if your code needs to hook into it to modify that behavior. The Cocoa text system implements a sophisticated editing mechanism that enables input and modification of complex text character and style information. ![]() This document also discusses the text input system that translates keyboard events into commands and text input. Usually, editing is performed by direct user action with a text view, but it can also be accomplished by programmatic interaction with a text storage object. Text editing is the modification of text characters or attributes by interacting with text objects. This chapter describes ways in which you can control the behavior of the Cocoa text system as it performs text editing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |