home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / ToDoDoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-30  |  1.2 KB  |  55 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. #import <Foundation/Foundation.h>
  9. #import "ToDoCell.h"
  10. #import "CalendarMatrix.h"
  11.  
  12. extern NSString *ToDoItemChangedNotification;
  13. @class ToDoItem;
  14.  
  15. @interface ToDoDoc:NSObject
  16. {
  17.     id    itemMatrix;
  18.     id    markMatrix;
  19.     id  calendar;
  20.     id  dayLabel;
  21.  
  22.     NSMutableDictionary *activeDays;
  23.     NSMutableArray *currentItems;
  24.     BOOL itemsNeedSaving;
  25. }
  26.  
  27. /* accessor methods */
  28. - (NSMutableArray *)currentItems;
  29. - (void)setCurrentItems:(NSMutableArray *)newItems;
  30. - (NSMatrix *)itemMatrix;
  31. - (NSMatrix *)markMatrix;
  32. - (NSMutableDictionary *)activeDays;
  33. - (CalendarMatrix *)calendar;
  34.  
  35. /* matrix/data management */
  36. - (void)updateMatrix;
  37. - (void)selectionInMatrix:(NSNotification *)notif;
  38. - (void)itemChecked:sender;
  39. - (void)saveDocItems;
  40. - (void)selectItem:(int)item;
  41.  
  42. /* document management */
  43. - (void)saveDoc;
  44.  
  45. /* item timer management */
  46. - (void)itemTimerFired:(id)timer;
  47. - (void)setTimerForItem:(ToDoItem *)anItem;
  48.  
  49. /* housekeeping */
  50. - (id)initWithFile:(NSString *)aFile;
  51. - (void)dealloc;
  52. - (void)activateDoc;
  53.  
  54. @end
  55.