home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.bin / SourceCode / Palettes / TTools / TToolsPalette / Utilities.subproj / ConnectorAgent.m < prev    next >
Encoding:
Text File  |  1993-11-09  |  761 b   |  42 lines

  1. /* ConnectorAgent.m
  2.  * Written By:  Thomas Burkholder
  3.  *
  4.  * You may freely copy, distribute, and reuse the code in this example.
  5.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  6.  * fitness for any particular use.
  7.  */
  8.  
  9. #import <apps/InterfaceBuilder.h>
  10. #import "ConnectorAgent.h"
  11.  
  12. @implementation ConnectorAgent
  13.  
  14. - subdirectoryFor:anObject sender:sender
  15. {
  16.     return nil;
  17. }
  18.  
  19. - (BOOL)isLeaf:anObject sender:sender
  20. {
  21.     return YES;
  22. }
  23.  
  24. - (const char *)displayStringFor:anObject sender:sender
  25. {
  26.     return [[anObject destination] name];
  27. }
  28.  
  29. - (int)compare:first with:second sender:sender
  30. {
  31.     // we don't want connectors to be ordered.
  32.     // therefore, the first < second.
  33.     return -1;
  34. }
  35.  
  36. - (const char *)titleOfColumn:(int)col
  37. {
  38.     return NULL;
  39. }
  40.  
  41. @end
  42.