home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / TAController.h < prev    next >
Encoding:
Text File  |  1996-07-30  |  1.5 KB  |  67 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.  
  8. #import <AppKit/AppKit.h>
  9. #import <Foundation/Foundation.h>
  10. #import "Country.h"
  11.  
  12. enum LogisticsFormTags {
  13.     LGairports=0,
  14.     LGairlines,
  15.     LGtransportation,  
  16.     LGhotels  
  17. };
  18.  
  19.  
  20. @interface TAController:NSObject
  21. {
  22.     id    tableView;
  23.     id    celsius;
  24.     id  commentsLabel;
  25.     id    commentsField;
  26.     id  converter;
  27.     id    countryField;
  28.     id  currencyDollarsField;
  29.     id  currencyLocalField;
  30.     id    currencyNameField;
  31.     id    currencyRateField;
  32.     id    englishSpokenSwitch;
  33.     id    fahrenheit;
  34.     id    languagesField;
  35.     id    logisticsForm;
  36.  
  37.     NSMutableDictionary *countryDict;
  38.     NSMutableArray *countryKeys;
  39.     BOOL recordNeedsSaving;
  40. }
  41.  
  42. /* target/action */
  43. - (void)addRecord:(id)sender;
  44. - (void)convertCelsius:(id)sender;
  45. - (void)convertCurrency:(id)sender;
  46. - (void)deleteRecord:(id)sender;
  47. - (void)handleTVClick:(id)sender;
  48. - (void)blankFields:(id)sender;
  49. - (void)nextRecord:(id)sender;
  50. - (void)priorRecord:(id)sender;
  51. - (void)switchChecked:(id)sender;
  52.  
  53. /* Data read and write methods */
  54. - (void)populateFields:(Country *)aRec;
  55. - (void)extractFields:(Country *)aRec;
  56.  
  57. /* housekeeping methods */
  58. - (id)init;
  59. - (void)awakeFromNib;
  60. - (void)dealloc;
  61.  
  62. /* delegate and notification methods */
  63. - (void)textDidChange:(NSNotification *)notification;
  64. - (BOOL)applicationShouldTerminate:(id)sender;
  65.  
  66. @end
  67.