TextViewDelegate

Last Revision:
Version 1.1, 2011-08-23
Project updated for Xcode 4.
(Full Revision History)
Build Requirements:
Xcode 3.2, Mac OS X 10.6 Snow Leopard or later.
Runtime Requirements:
Mac OS X 10.6 Snow Leopard or later.

This application demonstrates the use of the text view's delegate to control selection and user input. We use an unmodified text view, except that as its delegate we make sure that whenever a return is entered, the text that has been typed up to that point is colored red, and is recorded as committed, so that no further changes are allowed to it.