home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / Apps / Utilities / Unix / aa_m68k_Intel_Only / UNIX-HatersTool.0.1 / MiscSwapKitPalette.BETA / MiscSCCInspector.m < prev    next >
Encoding:
Text File  |  1994-09-23  |  925 b   |  65 lines

  1.  
  2. #import "MiscSwapKit.subproj/MiscSwapContentsController.h"
  3. #import "MiscSCCInspector.h"
  4.  
  5.  
  6. @implementation MiscSCCInspector
  7.  
  8. // Load the Inspector
  9.  
  10. - init
  11. {
  12.     char buf[MAXPATHLEN + 1];
  13.     id bundle;
  14.     
  15.     [super init];
  16.     
  17.     bundle = [NXBundle bundleForClass:[MiscSwapContentsController class]];
  18.  
  19.     [bundle getPath: buf forResource: "MiscSCCInspector" ofType:"nib"];
  20.  
  21.     [NXApp loadNibFile:buf owner:self withNames:NO fromZone:[self zone]];
  22.            
  23.     return self;
  24. }
  25.  
  26.  
  27.  
  28. // Query the object for it's attributes to display
  29.  
  30. - revert: sender
  31. {
  32.     [tagForm setIntValue: [object triggerTag] ];
  33.     
  34.     return [super revert: sender];
  35. }
  36.  
  37.  
  38.  
  39. - tagChanged:sender
  40. {
  41.     [object setTriggerTag: [tagForm intValue] ];
  42.     
  43.     return [super ok: sender];
  44. }
  45.  
  46.  
  47.  
  48. - (BOOL)wantsButtons
  49. {
  50.     return NO;
  51. }
  52.  
  53. @end
  54.  
  55.  
  56. @implementation MiscSwapContentsController (IBInspector)
  57.  
  58. - (const char *)getInspectorClassName
  59. {
  60.     return "MiscSCCInspector";
  61. }
  62.  
  63. @end
  64.     
  65.