home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscTeePalette / MiscDistributor.subproj / MiscDistributor.h < prev    next >
Encoding:
Text File  |  1994-10-24  |  1.0 KB  |  39 lines

  1. //
  2. //    MiscDistributor.h -- An object which will pass a message on to any of
  3. //            the objects connected to it, even across .nib file boundaries.
  4. //
  5. //        Written by Don Yacktman.  Copyright 1994 by Don Yacktman.
  6. //                Version 1.0  All rights reserved.
  7. //
  8. //        This notice may not be removed from this source code.
  9. //
  10. //    This object is included in the MiscKit by permission from the author
  11. //    and its use is governed by the MiscKit license, found in the file
  12. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  13. //    for a list of all applicable permissions and restrictions.
  14. //    
  15.  
  16. #import <misckit/MiscTee.h>
  17.  
  18. typedef enum _MiscDCDirection {
  19.     MiscIn = 1,
  20.     MiscOut,
  21.     MiscInout
  22. } MiscDCDirection;
  23.  
  24. @interface MiscDistributor : MiscTee
  25. {
  26.     // used for IB and .nib unarchiving only
  27.     id connections;
  28. }
  29.  
  30. + initialize;
  31. + findDistributorNamed:(const char *)aString;
  32. - connectToDistributorNamed:(const char *)aString
  33.         direction:(MiscDCDirection)direction;
  34. - awakeFromNib;
  35. - read:(NXTypedStream *)stream;
  36. - write:(NXTypedStream *)stream;
  37.  
  38. @end
  39.