home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Examples / AppKit / ToDo / ToDoDoc.h < prev    next >
Text File  |  1996-04-03  |  1KB  |  49 lines

  1. #import <AppKit/AppKit.h>
  2. #import <Foundation/Foundation.h>
  3. #import "ToDoCell.h"
  4. #import "CalendarMatrix.h"
  5.  
  6. extern NSString *ToDoItemChangedNotification;
  7. @class ToDoItem;
  8.  
  9. @interface ToDoDoc:NSObject
  10. {
  11.     id    itemMatrix;
  12.     id    markMatrix;
  13.     id  calendar;
  14.     id  dayLabel;
  15.  
  16.     NSMutableDictionary *activeDays;
  17.     NSMutableArray *currentItems;
  18.     BOOL itemsNeedSaving;
  19. }
  20.  
  21. /* accessor methods */
  22. - (NSMutableArray *)currentItems;
  23. - (void)setCurrentItems:(NSMutableArray *)newItems;
  24. - (NSMatrix *)itemMatrix;
  25. - (NSMatrix *)markMatrix;
  26. - (NSMutableDictionary *)activeDays;
  27. - (CalendarMatrix *)calendar;
  28.  
  29. /* matrix/data management */
  30. - (void)updateMatrix;
  31. - (void)selectionInMatrix:(NSNotification *)notif;
  32. - (void)itemChecked:sender;
  33. - (void)saveDocItems;
  34. - (void)selectItem:(int)item;
  35.  
  36. /* document management */
  37. - (void)saveDoc;
  38.  
  39. /* item timer management */
  40. - (void)itemTimerFired:(id)timer;
  41. - (void)setTimerForItem:(ToDoItem *)anItem;
  42.  
  43. /* housekeeping */
  44. - (id)initWithFile:(NSString *)aFile;
  45. - (void)dealloc;
  46. - (void)activateDoc;
  47.  
  48. @end
  49.