home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / WebObjects / WebObjectsDoc_HTML / Reuse / ReusableComponentsEx / ComponentChoice.wo / ComponentChoice.wos < prev    next >
Encoding:
Text File  |  1996-03-03  |  523 b   |  29 lines

  1.  
  2. id componentNames;
  3. id currentComponentName;
  4.  
  5. - initComponentNames
  6. {
  7.     id aPlistString;
  8.  
  9.     id aPathName = [WOApp _pathForResource: @"Components" ofType: @"plist" 
  10.     inComponentWithName: @"ComponentChoice"];
  11.     aPlistString = [NSString stringWithContentsOfFile: aPathName];
  12.     componentNames = [aPlistString propertyList];
  13. }
  14.  
  15. - awake
  16. {
  17.     [self initComponentNames];
  18. }
  19.  
  20. - currentExampleName
  21. {
  22.     return [NSString stringWithFormat: @"%@Ex", currentComponentName]; 
  23. }
  24.  
  25. - setCurrentExampleName:aValue
  26. {
  27.     return nil;
  28. }
  29.