home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / programm / 5739 < prev    next >
Encoding:
Text File  |  1992-08-21  |  2.6 KB  |  81 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!news
  3. From: qureshi@unixhub.slac.stanford.edu ("For deposit only")
  4. Subject: Re: matrix class question (SOLUTION)
  5. Message-ID: <1992Aug21.210819.17335@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Reply-To: cooldude@elaine49.stanford.edu
  8. Organization: DSO, Stanford University
  9. References: <988m58_.yikes@netcom.com>
  10. Date: Fri, 21 Aug 92 21:08:19 GMT
  11. Lines: 68
  12.  
  13. In article <988m58_.yikes@netcom.com> yikes@netcom.com (Jenny Doll) writes:
  14. > Nader Sahyouni writes:
  15. > >I vaguely remember seeing a posting about someone developing a 
  16. > >matrix that could have different size text fields in it. That
  17. > >would be enormously beneficial to me. If anyone remembers this
  18. > >or can tell me where to get it, I'd appreciate it.
  19. > I too am quite interested in such a thing.  I have a matrix that contains a
  20. > matrix of cells which are names of tasks.  I would like to have the height of
  21. > each cell correspond to the duration of each task (short task->short cell, 
  22. > long task->tall cell).  I'd be happy to try the thing myself if someone could
  23. > point me in the right direction.
  24. > Michael Brill
  25. > yikes@netcom.com
  26.  
  27. I wrote a class called "VarMatrix" that does this.  It should be available in  
  28. the submissions directory of sonata.cc.purdue.edu as VarMatrix.tar, unless  
  29. someone moved it.
  30.  
  31. The class is FREEWARE so the price is right!
  32.  
  33. Here is an excerpt from the README file.
  34. -------
  35. The VarMatrix class is a subclass of Matrix that allows variable sized columns  
  36. and rows.  However the overall shape of the matrix has to be a rectangle.  For  
  37. example,
  38.  
  39. ----------------------
  40. |  |          |   |   |
  41. -----------------------
  42. |  |          |   |   |
  43. -----------------------
  44. |  |          |   |   |
  45. |  |          |   |   |
  46. -----------------------
  47. |  |          |   |   |
  48. -----------------------
  49.  
  50. Column 2 and Row 3 have different sizes from the rest.
  51.  
  52. Full functionality of Matrix class should be available since VarMatrix is a  
  53. subclass.
  54.  
  55. An example program is also included which shows how to use the class.   
  56. Basically you need to know 2 new calls.
  57.  
  58. -setWidth:(float)width forCol:(int)col;
  59. -setHeight:(float)height forRow:(int)theRow;
  60.  
  61. They change the width of a column and the height of a row.
  62.  
  63. Future: I am planning to make this class into an IB palette that you could use  
  64. from inside Interface builder.
  65.     I am going to add the functionality to have cells of different type in  
  66. this matrix.
  67.  
  68. This class is FREEWARE.  All the standard stuff applies.  You are free to use  
  69. it as you wish. If you decide to use it, I would like to hear from you.  Just  
  70. send me email.
  71.  
  72. --------
  73.  
  74. Ciao,
  75.  
  76. Imran
  77.