home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / Rhapsody / Graphics / Morph-2.0a / Inspector.m < prev    next >
Encoding:
Text File  |  1998-01-06  |  745 b   |  48 lines

  1. // Inspector.m 
  2. //
  3. // created by Martin Wennerberg on Mon 05-Jan-1998
  4. //
  5. // when        who    modification
  6.  
  7. #import "Inspector.h"
  8.  
  9. @implementation Inspector
  10. + (Inspector *) sharedInspector
  11. {
  12.     static Inspector *sharedObj = nil;
  13.     if (sharedObj == nil)
  14.         sharedObj = [[self alloc] init];
  15.     return sharedObj;
  16. }
  17.  
  18. - (NSView *) view
  19. {
  20.     return view;
  21. }
  22.  
  23. - (void) setView:(NSView *)inspectorView
  24. {
  25.     [view autorelease];
  26.     view = [inspectorView retain];
  27. }
  28.  
  29. - (BOOL) isValidInspectorForTargets:(NSArray *)inspectedObjects
  30. {
  31.     return NO;
  32. }
  33.  
  34. - (void) setTargets:(NSArray *)inspectedObjects
  35. {
  36.     [_targets autorelease];
  37.     _targets = [inspectedObjects retain];
  38. }
  39.  
  40. - (NSArray *) targets
  41. {
  42.     return _targets;
  43. }
  44.  
  45. - (void) revert:sender
  46. {}
  47. @end
  48.