Re: Setting data cell type for a specific row
Re: Setting data cell type for a specific row
- Subject: Re: Setting data cell type for a specific row
- From: "I. Savant" <email@hidden>
- Date: Mon, 26 Jan 2009 19:56:57 -0500
On Jan 26, 2009, at 7:45 PM, I. Savant wrote:
Well what did you expect it to do?
Again ... you don't get a reference to an individual cell at a row/
column. Tables don't work that way in Cocoa. The cell for a column
is a *prototype* cell that's reused (changed and re-rendered in the
proper position per row). Changing the data cell changes the *one*
prototype that's used.
Just to clarify something that might not be so obvious, you need to
respond with the preferred cell for *every* row. In other words, in
your case, always answer with the usual cell until you get to the last
row, then answer with the alternate cell.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden