home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscTableScroll / MiscNullView.M < prev    next >
Encoding:
Text File  |  1996-02-11  |  2.4 KB  |  77 lines

  1. //=============================================================================
  2. //
  3. //        Copyright (C) 1995, 1996 by Paul S. McCarthy and Eric Sunshine.
  4. //                Written by Paul S. McCarthy and Eric Sunshine.
  5. //                            All Rights Reserved.
  6. //
  7. //        This notice may not be removed from this source code.
  8. //
  9. //        This object is included in the MiscKit by permission from the authors
  10. //        and its use is governed by the MiscKit license, found in the file
  11. //        "License.rtf" in the MiscKit distribution.    Please refer to that file
  12. //        for a list of all applicable permissions and restrictions.
  13. //        
  14. //=============================================================================
  15. //-----------------------------------------------------------------------------
  16. // MiscNullView.M
  17. //
  18. //        View class that covers the gap in the upper left corner when a 
  19. //        MiscTableScroll has both row and column titles turned on.
  20. //
  21. //-----------------------------------------------------------------------------
  22. //-----------------------------------------------------------------------------
  23. // $Id: MiscNullView.M,v 1.2 96/01/13 23:38:37 zarnuk Exp $
  24. // $Log:        MiscNullView.M,v $
  25. //    Revision 1.2  96/01/13    23:38:37  zarnuk
  26. //    Now allocates the cell from [self zone].
  27. //    
  28. //    Revision 1.1  95/09/27    12:21:21  zarnuk
  29. //    Initial revision
  30. //    
  31. //-----------------------------------------------------------------------------
  32. #import "MiscNullView.h"
  33. #import "MiscBorderCell.h"
  34.  
  35. extern "Objective-C" {
  36. #import <appkit/graphics.h>
  37. }
  38.  
  39. @implementation MiscNullView
  40.  
  41. //-----------------------------------------------------------------------------
  42. // - free
  43. //-----------------------------------------------------------------------------
  44. - free
  45.     {
  46.     [theCell free];
  47.     return [super free];
  48.     }
  49.  
  50.  
  51.  
  52. //-----------------------------------------------------------------------------
  53. // - initFrame:
  54. //-----------------------------------------------------------------------------
  55. - initFrame:(NXRect const*)frameRect
  56.     {
  57.     [super initFrame:frameRect];
  58.     [self setFlipped:YES];
  59.     [self setOpaque:YES];
  60.     [self setClipping:NO];
  61.     theCell = [[MiscBorderCell allocFromZone:[self zone]] initTextCell:""];
  62.     return self;
  63.     }
  64.  
  65.  
  66.  
  67. //-----------------------------------------------------------------------------
  68. // - drawSelf::
  69. //-----------------------------------------------------------------------------
  70. - drawSelf: (NXRect const*) rects : (int) nrects
  71.     {
  72.     [theCell drawSelf:&bounds inView:self];
  73.     return self;
  74.     }
  75.  
  76. @end
  77.