home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / YellowBox / Kits / MiscTableScroll-138.1 / Palettes / MiscTableScroll / Framework / MiscBorderCell.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-31  |  2.0 KB  |  53 lines

  1. #ifndef __MiscBorderCell_h
  2. #define __MiscBorderCell_h
  3. //=============================================================================
  4. //
  5. //  Copyright (C) 1995,1996,1997,1998 by Paul S. McCarthy and Eric Sunshine.
  6. //        Written by Paul S. McCarthy and Eric Sunshine.
  7. //                All Rights Reserved.
  8. //
  9. //    This notice may not be removed from this source code.
  10. //
  11. //    This object is included in the MiscKit by permission from the authors
  12. //    and its use is governed by the MiscKit license, found in the file
  13. //    "License.rtf" in the MiscKit distribution.  Please refer to that file
  14. //    for a list of all applicable permissions and restrictions.
  15. //    
  16. //=============================================================================
  17. //-----------------------------------------------------------------------------
  18. // MiscBorderCell.h
  19. //
  20. //    Cell class used by MiscBorderView to manage column headings and row 
  21. //    labels for MiscTableScroll.  
  22. //
  23. //-----------------------------------------------------------------------------
  24. //-----------------------------------------------------------------------------
  25. // $Id: MiscBorderCell.h,v 1.5 98/03/29 23:38:20 sunshine Exp $
  26. // $Log:    MiscBorderCell.h,v $
  27. //  Revision 1.5  98/03/29  23:38:20  sunshine
  28. //  v138.1: Now derived from NSTableHeaderCell rather than NSTextFieldCell
  29. //  so that it knows how to correctly draw and color itself on all platforms
  30. //  rather than only being able to draw itself in a NextStep-like fashion.
  31. //  
  32. //  Revision 1.4  97/03/23  05:45:42  sunshine
  33. //  v125.4: Worked around OPENSTEP 4.1 bug where -setupFieldEditorAttributes:
  34. //  never gets called, so text was not drawing white.  Worked around problem by
  35. //  subclassing from NSTextFieldCell rather than NSCell.  This way color can
  36. //  be set with -setTextColor:.
  37. //-----------------------------------------------------------------------------
  38. extern "Objective-C" {
  39. #import <AppKit/NSTableHeaderCell.h>
  40. }
  41. class NSImage;
  42.  
  43. @interface MiscBorderCell : NSTableHeaderCell
  44.     {
  45.     NSImage* toggleImage;
  46.     }
  47.  
  48. - (void)setToggleImage:(NSImage*)image;
  49.  
  50. @end
  51.  
  52. #endif // __MiscBorderCell_h
  53.