/* Manages the opening, saving, and editing of an XML file containing weather measurements. */ #import @interface MyDocument : NSDocument { NSMutableArray *theItems; // Array of DataItem objects NSMutableArray *measureTypes; // for pop-up menu and XML IBOutlet NSArrayController *theController; // Link to ArrayController IBOutlet NSPopUpButton *typeMenu; // pop-up menu IBOutlet NSTextField *dataField; // text field for data } /* Creates a new DataItem object, populates it from the UI and adds it to theItems array. */ - (IBAction)createNewItem:(id)sender; @end