home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / programm / 7862 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.3 KB  |  41 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!princeton!toimpossible.Princeton.EDU!gmecchia
  3. From: gmecchia@toimpossible.Princeton.EDU ()
  4. Subject: setting stringValue of several columns in a matrix
  5. Message-ID: <1992Dec21.164237.13014@Princeton.EDU>
  6. Originator: news@nimaster
  7. Sender: news@Princeton.EDU (USENET News System)
  8. Nntp-Posting-Host: toimpossible.princeton.edu
  9. Organization: Princeton University
  10. Date: Mon, 21 Dec 1992 16:42:37 GMT
  11. Lines: 28
  12.  
  13.  
  14. hi,
  15.  
  16. I am experiencing poor performance in setting string values to textfields in a matrix.
  17.  
  18. With a 6x20 matrix of TextField instances, and calling the method clearMatrices (below), the task of clearing the textfield is noticeably SLOW.  Is there room for improvement?
  19.  
  20. - clearMatrices
  21. {
  22.     int i;
  23.  
  24.     for (i = 0; i < ROWS_PER_PAGE; i++)        // ROWS_PER_PAGE = 20
  25.     {
  26.         // dateMatrix built using IB
  27.  
  28.         [[dateMatrix cellAt: i: 0] setStringValueNoCopy: ""];
  29.         [[dateMatrix cellAt: i: 1] setStringValueNoCopy: ""];
  30.         [[dateMatrix cellAt: i: 2] setStringValueNoCopy: ""];
  31.         [[dateMatrix cellAt: i: 3] setStringValueNoCopy: ""];
  32.         [[dateMatrix cellAt: i: 4] setStringValueNoCopy: ""];
  33.         [[dateMatrix cellAt: i: 5] setStringValueNoCopy: ""];
  34.     }
  35.     return self;
  36. }
  37.  
  38. Alexis Rzewski
  39. gmecchia@phoenix.princeton.edu
  40. rzewski@northstar.com
  41.