
#import <appkit/appkit.h>

#import "XQ_InterchangeCell.h"
#import "XQ_UserFunction.h"

#import "Questor_API_Demo1Speaker.h"
#import "Questor_API_Demo1Listener.h"
#import "Questor_API_Demo1.h"

@implementation Questor_API_Demo1

- appWillInit:sender;
{
	id l = [[Questor_API_Demo1Listener alloc] init];
	id s = [[Questor_API_Demo1Speaker alloc] init];	// not used actually
	
	[NXApp setAppListener: l];
	[NXApp setAppSpeaker: s];

	return self;
}

//
// Write some fancy comments here
//

- (int)addA: (int)x andB:(int)y to:(int *)z;
{
	int result = x + y;
	
	[a setIntValue: x];
	[b setIntValue: y];
	[c setIntValue: result];
	
	*z = result;
	
	return 0;
}

@end
