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

  1. /* CellCategories.m
  2.  * Written By:  Thomas Burkholder
  3.  *
  4.  * You may freely copy, distribute, and reuse the code in this example.
  5.  * But you're better off waiting for the final version.  Please don't
  6.  * distribute outside the company - unless you absolutely must.
  7.  * E-mail bug reports, suggestions, flames, to burkhold@next.com.
  8.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  9.  * fitness for any particular use.
  10.  */
  11.  
  12. #import "CellCategories.h"
  13.  
  14. @implementation ButtonCell (IBButtonCellCategory)
  15.  
  16. + makePrototype
  17. {
  18.     return [[self alloc] initTextCell:"Field"];
  19. }
  20.  
  21. + (int)defaultMatrixMode
  22. {
  23.     return NX_RADIOMODE;
  24. }
  25.  
  26. @end
  27.  
  28. @implementation TextFieldCell (IBTextFieldCellCategory)
  29.  
  30. + makePrototype
  31. {
  32.     return [[self alloc] initTextCell:"Field"];
  33. }
  34.  
  35. + (int)defaultMatrixMode
  36. {
  37.     return NX_TRACKMODE;
  38. }
  39.  
  40. @end
  41.  
  42. @implementation SliderCell (IBSliderCellCategory)
  43.  
  44. + makePrototype
  45. {
  46.     return [[self alloc] init];
  47. }
  48.  
  49. + (int)defaultMatrixMode
  50. {
  51.     return NX_TRACKMODE;
  52. }
  53.  
  54. @end