Version: 1.0

Posted: 2003-01-14

Build Requirements: N/A

Runtime Requirements: Mac OS X Mac OS X, Project Builder 2.0 (project can be downgraded)

View Source Code:

Download Sample (“TextViewDelegate.zip”, 26.5K)
Download Sample (“TextViewDelegate.dmg”, 87.7K)



Description

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. Requirements: Mac OS X, Project Builder 2.0 (project can be downgraded) Keywords: NSTextView cocoa nstextview text

Document Revision History

Date Notes
2003-01-14Demonstrates using a text view's delegate to control selection and user input.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.