home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / EODEV.Z / EODetailDataSource.h < prev    next >
Encoding:
Text File  |  1996-09-11  |  993 b   |  27 lines

  1. // EODetailDataSource.h
  2. // Copyright (c) 1995, NeXT Software, Inc. All rights reserved.
  3. //
  4. // The EODetailDataSource provides values extracted from a named property
  5. // of a master object.  E.g. the master object could be a Department and the
  6. // the detailKey could be "employees".  In this case the dataSource would
  7. // use [department valueForKey:@"employees"] to get the set of objects
  8. // to return from fetchObjects.  Values inserted or deleted in the dataSource
  9. // would, in turn, cause insertions or deletion in the employees array of
  10. // the department object.
  11. //
  12. #import <EOControl/EODataSource.h>
  13.  
  14. @interface EODetailDataSource : EODataSource <NSCoding>
  15. {
  16.     EODataSource *_masterDataSource;
  17.     id _masterObject;
  18.     NSString *_detailKey;
  19. }
  20. - initWithMasterDataSource:(EODataSource *)master detailKey:(NSString *)detailKey;
  21. - (EODataSource *)masterDataSource;
  22.  
  23. - (void)qualifyWithRelationshipKey:(NSString *)key ofObject:masterObject;
  24. - (NSString *)detailKey;
  25. - (id)masterObject;
  26. @end
  27.