This section describes the functions and methods necessary for adding to the task list and removing tasks from the task list. A total of two methods and two functions are necessary.
frame-add-task
frame-remove-task add-task This adds an instance of <task> to an instance of <task-list>.
remove-task This removes an instance of <task> from an instance of <task-list>.
As with the file handling code, DUIM code and non-DUIM code has been separated. The methods beginning with frame- deal with the GUI-related issues of adding and removing tasks, and the functions deal with the underlying data structures.
Add the definitions of the methods to frame.dylan, and the definitions of the functions to task-list.dylan.