
#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
