This is CalObject.m in view mode; [Download] [Up]
#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
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.