home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / SourceCode / Database / OTC_EOFBetaExamples_V1.0 / EOFramework / KeyValueCoding / Catalog.h < prev    next >
Encoding:
Text File  |  1994-07-31  |  1.3 KB  |  53 lines

  1. /*--------------------------------------------------------------------------
  2.  *
  3.  *     You may freely copy, distribute, and reuse the code in this example.
  4.  *     SHL Systemhouse disclaims any warranty of any kind, expressed or  
  5.  *    implied, as to its fitness for any particular use.
  6.  *
  7.  *    Catalog
  8.  *
  9.  *    Inherits From:        NSObject
  10.  *
  11.  *    Conforms To:        None
  12.  *
  13.  *    Declared In:        Catalog.h
  14.  *
  15.  *    Class Description
  16.  *
  17.  *        Contains author information with titles and publishing information.
  18.  *        Demonstrates the KeyValueCoding protocol.
  19.  *
  20.  *------------------------------------------------------------------------*/
  21. #import <appkit/appkit.h>
  22. #import <eointerface/eointerface.h>
  23. #import <eoaccess/eoaccess.h>
  24. #import <foundation/foundation.h>
  25.  
  26.     
  27.  
  28. @interface Catalog:NSObject
  29. {
  30.     id    fullname;
  31.     id    price;
  32.     id    volumeTitle;
  33. }
  34.  
  35. /*--------------------------------------------------------------------------
  36.  *    Accessor methods
  37.  *------------------------------------------------------------------------*/
  38. - authorName;
  39. - volumeTitle;
  40. - price;
  41.  
  42. - setPrice: aPrice;
  43.  
  44.  
  45. /*--------------------------------------------------------------------------
  46.  *    Key Value Coding protocol
  47.  *------------------------------------------------------------------------*/
  48. - (BOOL)takeValuesFromDictionary:(NSDictionary *)dictionary;
  49. - (NSDictionary *)valuesForKeys:(NSArray *)keys;
  50.  
  51.  
  52. @end
  53.