Re: row bg color in NSOutlineView
Re: row bg color in NSOutlineView
- Subject: Re: row bg color in NSOutlineView
- From: Itrat Khan <email@hidden>
- Date: Sat, 22 Dec 2001 05:06:22 -0500
On Saturday, December 22, 2001, at 01:29 AM, jgo wrote:
To save storage, NSTableView reuses cells to draw multiple items.
Are they that massive? I thought that part of the idea of cells
is that they're lighter than views.
They are lighter, but if you had 1,000 rows and five columns, you'd need
5,000 instances instead of just one.
I don't quite get this. If one can set the cell for a specific
point in the table (column & row), then it must not be getting
re-used everywhere.
You don't actually set the cell, you're given the cell and you can
update its attributes (state, text colour, etc.).
..................................................................
Itrat Khan
Modeless Software, Inc.
http://www.modeless.com