🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by gmecchia Mon, 21 Dec 1992 16:42
setting stringValue of several columns in a matrix
#1918
Author: gmecchia
Date: Mon, 21 Dec 1992 16:42
28 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads