Article View: comp.sys.next.programmer
Article #1918setting stringValue of several columns in a matrix
From: gmecchia
Date: Mon, 21 Dec 1992 16:42
Date: Mon, 21 Dec 1992 16:42
28 lines
1380 bytes
1380 bytes
hi,
I am experiencing poor performance in setting string values to textfields in a matrix.
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?
- clearMatrices
{
int i;
for (i = 0; i < ROWS_PER_PAGE; i++) // ROWS_PER_PAGE = 20
{
// dateMatrix built using IB
[[dateMatrix cellAt: i: 0] setStringValueNoCopy: ""];
[[dateMatrix cellAt: i: 1] setStringValueNoCopy: ""];
[[dateMatrix cellAt: i: 2] setStringValueNoCopy: ""];
[[dateMatrix cellAt: i: 3] setStringValueNoCopy: ""];
[[dateMatrix cellAt: i: 4] setStringValueNoCopy: ""];
[[dateMatrix cellAt: i: 5] setStringValueNoCopy: ""];
}
return self;
}
Alexis Rzewski
gmecchia@phoenix.princeton.edu
rzewski@northstar.com
Technical Details
Message-ID:
<1992Dec21.164237.13014@Princeton.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!princeton!toimpossible.Princeton.EDU!gmecchiaShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!princeton!toimpossible.Princeton.EDU!gmecchia From: gmecchia@toimpossible.Princeton.EDU () Subject: setting stringValue of several columns in a matrix Message-ID: <1992Dec21.164237.13014@Princeton.EDU> Originator: news@nimaster Sender: news@Princeton.EDU (USENET News System) Nntp-Posting-Host: toimpossible.princeton.edu Organization: Princeton University Date: Mon, 21 Dec 1992 16:42:37 GMT Lines: 28