home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / EODEV.Z / SampleAssocInspector.m < prev    next >
Encoding:
Text File  |  1996-08-24  |  980 b   |  47 lines

  1. /*
  2.         Copyright (c) 1996, NeXT Software, Inc.
  3.         All rights reserved.
  4.  
  5.         You may freely copy, distribute and reuse the code in this example.
  6.         NeXT disclaims any warranty of any kind, expressed or implied,
  7.         as to its fitness for any particular use.
  8. */
  9. #import "SampleAssocInspector.h"
  10. #import <EOInterface/EOInterface.h>
  11. #import <EOExtensions/EOBrowserAssociation.h>
  12.  
  13. @implementation EOSampleAssocInspector
  14.  
  15. - (id)init
  16. {
  17.     self = [super init];
  18.     [NSBundle loadNibNamed:@"SampleAssocInspector" owner:self];
  19.     return self;
  20. }
  21.  
  22. - (BOOL)wantsButtons
  23. {
  24.     return NO;
  25. }
  26.  
  27. - (void)revert:(id)sender
  28. {
  29.     [descriptionField setStringValue:[[self object] description]];
  30.     [super revert:sender];
  31. }
  32.  
  33. - (void)ok:(id)sender
  34. {
  35.     [super ok:sender];
  36. }
  37.  
  38. @end
  39.  
  40. // Make this the association for the EBrowserAssociation
  41. @implementation EOBrowserAssociation (EOSampleAssocInspector)
  42. - (NSString *)inspectorClassName
  43. {
  44.     return @"EOSampleAssocInspector";
  45. }
  46. @end
  47.