This is Controller.m in view mode; [Download] [Up]
#include "Controller.h"
#import <appkit/Box.h>
#import <appkit/Matrix.h>
@implementation Controller
- appDidInit:sender
{
cviewOne = [viewOne contentView];
cviewTwo = [viewTwo contentView];
// [inspectorBox setContentView:cviewOne];
// [inspectorBox display];
return self;
}
- changeView:sender
{
if ( [sender selectedCol] ) {
[inspectorBox setContentView:cviewTwo];
[inspectorBox display];
} else {
[inspectorBox setContentView:cviewOne];
[inspectorBox display];
}
return self;
}
- buttonOne:sender
{
NXRect r,t;
[resultText setStringValue:"Button One"];
[viewOne getFrame:&r];
[inspectorBox getFrame:&t];
return self;
}
- buttonTwo:sender
{
[resultText setStringValue:"Button Two"];
return self;
}
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.