|
|
1.1 root 1: // StubView.m
2: // By Jayson Adams, NeXT Developer Support Team
3: // You may freely copy, distribute and reuse the code in this example.
4: // NeXT disclaims any warranty of any kind, expressed or implied, as to its
5: // fitness for any particular use.
6:
7: #import <dpsclient/psops.h>
8: #import <appkit/graphics.h>
9:
10: #import "StubView.h"
11:
12: @implementation StubView
13:
14: - drawSelf:(const NXRect *)rects :(int)count
15: {
16: NXRect lineRect;
17:
18: PSsetgray(NX_WHITE);
19: NXRectFill(&bounds);
20: PSsetgray(NX_BLACK);
21:
22: NXSetRect(&lineRect, 0.0, 0.0, NX_WIDTH(&bounds), 1.0);
23: NXFrameRect(&lineRect);
24:
25: return self;
26: }
27:
28: @end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.