File:  [NeXTSTEP 3.3 examples] / Examples / UNIX / Subprocess / CommandScroll.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:25 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

/*
        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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.