home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / WebObjects / WebObjectsDoc_HTML / Reuse / ReusableComponentsEx / DictionaryTableEx.wo / DictionaryTableEx.wos < prev   
Encoding:
Text File  |  1996-03-02  |  556 b   |  31 lines

  1. ////////////////////////
  2. //  DictionaryTable
  3. //  by Charles Lloyd
  4. ////////////////////////
  5.  
  6. id keyFieldValue;
  7. id valueFieldValue;
  8. id deleteKeyFieldValue;
  9.  
  10. persistent id localDictionary;
  11.  
  12. - awake
  13. {
  14.     if (!localDictionary) {
  15.         localDictionary = [NSMutableDictionary dictionary];
  16.         [localDictionary setObject:@"Dummy" forKey:@"Dummy"];
  17.     }
  18. }
  19.  
  20. - addEntry
  21. {
  22.     [localDictionary setObject:valueFieldValue forKey:keyFieldValue];
  23.     return self;
  24. }
  25.  
  26. - deleteEntry
  27. {
  28.     [localDictionary removeObjectForKey:deleteKeyFieldValue];
  29.     return self;
  30. }
  31.