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

  1. /* MatrixAdditions.m
  2.  * Written By:  Thomas Burkholder
  3.  *
  4.  * You may freely copy, distribute, and reuse the code in this example.
  5.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  6.  * fitness for any particular use.
  7.  */
  8.  
  9. #import "MatrixAdditions.h"
  10.  
  11. @implementation Matrix (MatrixAdditions)
  12.  
  13. - setSelectedRow:(int)aRow
  14. {
  15.     [self selectCellAt:aRow :[self selectedCol]];
  16.     return self;
  17. }
  18.  
  19. - setSelectedCol:(int)aCol
  20. {
  21.     [self selectCellAt:[self selectedRow] :aCol];
  22.     return self;
  23. }
  24.  
  25. @end