home *** CD-ROM | disk | FTP | other *** search
- /*
- CommandScroll.m
- by Joe Freeman
- Subprocess Example, Release 2.0
- NeXT Computer, Inc.
-
- You may freely copy, distribute and reuse the code in this example.
- NeXT disclaims any warranty of any kind, expressed or implied, as to
- its fitness for any particular use.
- */
-
- #import <appkit/ScrollView.h>
-
- /*
- * This object sends its delegate the "userEntered:" message
- * whenever new text is entered in the text object inside this ScrollView
- *
- */
-
- @interface CommandScroll:ScrollView
- {
- id docView;
- id delegate;
- int lastTextCount;
- // size of the text object the last time this program played with it
- id machineFont, userFont;
- // so the user can distinguish what they typed from system output
- }
-
- - appendString:(char *)buffer;
- // append the buffer to the end of the text object
-
- @end
-