
#import "CalObject.h"
#include <stdio.h>
#include <time.h>
#include <sys/types.h>

@implementation CalObject

	NXRect frame;
 	int temp_x, temp_y;

// Calendar by Eric "E.T." Tremblay, February 14, 1993



// REBUILDCALVIEW
// This method builds the proper calendar in the window
- rebuildCalView:sender
{
	// Local Variables
	FILE *calCmd;
	char c, buff[256], *pbuff;
	
	[calendarPanel makeKeyAndOrderFront:NULL];

	sprintf( buff, "/usr/lib/sendmail -q");
	if ( (calCmd=popen(buff, "r")) == NULL )
	NXBeep();
	else {
		pbuff = buff;
		while( (c=fgetc(calCmd)) != EOF )
			*(pbuff++)=c;
		*pbuff='\0';
		pclose(calCmd);
		}
    

	return self;
}



@end
