home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / CalendarMatrix.h < prev    next >
Encoding:
Text File  |  1996-07-30  |  847 b   |  37 lines

  1. /*
  2.   You may freely copy, distribute, and reuse the code in this example.
  3.   NeXT disclaims any warranty of any kind, expressed or implied, as to its
  4.   fitness for any particular use.
  5. */
  6.  
  7. #import <AppKit/AppKit.h>
  8.  
  9. @interface CalendarMatrix : NSMatrix
  10. {
  11.     id    monthName;
  12.     id  leftButton;
  13.     id  rightButton;
  14.     
  15.     NSCalendarDate *selectedDay;
  16.     short startOffset;
  17. }
  18.  
  19. - (void)choseDay:sender;
  20. - (void)monthChanged:sender;
  21.  
  22. - (void)refreshCalendar;
  23. - (id)initWithFrame:(NSRect)frameRect;
  24. - (void)dealloc;
  25. - (void)setSelectedDay:(NSCalendarDate *)newDay;
  26. - (NSCalendarDate *)selectedDay;
  27.  
  28. @end
  29.  
  30. @interface NSObject(CalendarMatrixDelegate)
  31. - (void)calendarMatrix:(CalendarMatrix *)object didChangeToDate:(NSDate *)date;
  32. - (void)calendarMatrix:(CalendarMatrix *)object
  33.       didChangeToMonth:(int)month
  34.                   year:(int)year;
  35.  
  36. @end
  37.