Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Setting data cell type for a specific row
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting data cell type for a specific row



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


References: 
 >Re: Setting data cell type for a specific row (From: email@hidden)
 >Re: Setting data cell type for a specific row (From: "I. Savant" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.