home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / SourceCode / MiscKit1.2.6 / Palettes / MiscTeePalette / MiscTeePalette.m < prev    next >
Encoding:
Text File  |  1994-06-15  |  1.0 KB  |  39 lines

  1. //
  2. //    MiscTeePalette.m -- Sets up the palette connections between the visual
  3. //                        and the actual objects.
  4. //
  5. //        Written by David Fedchenko.  Copyright 1994 by David Fedchenko.
  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 "MiscTeePalette.h"
  17.  
  18. @implementation  MiscTeePalette
  19.  
  20. - finishInstantiate
  21.     {
  22.     id    idBundle;
  23.     id    idImage;
  24.     char buf[MAXPATHLEN + 1];
  25.     
  26.     [super finishInstantiate];
  27.     
  28.     [self associateObject:idTee type:IBObjectPboardType to:idTeeView];
  29.     
  30.     idBundle = [NXBundle bundleForClass:[self class]];
  31.     [idBundle getPath:buf forResource:"MiscTee" ofType:"tiff"];
  32.     idImage = [[NXImage alloc] initFromFile:buf];
  33.     [idTeeView setImage:idImage];
  34.     
  35.     return self;
  36.     }
  37.  
  38. @end
  39.