PDA

View Full Version : Custom tableview cells




Samppaa
Oct 25, 2010, 05:14 PM
Hey, I've been working with custom cells in the cocoa touch. The way they are done in the cocoa touch is brilliant. I can't find similar functionality in cocoa, so would someone lighten me up?



kainjow
Oct 25, 2010, 08:50 PM
Table cells in AppKit are very different. In UIKit they are just views (UIView subclasses), in AppKit they are a separate object NSCell (and subclasses). The difference is in UIKit you have multiple table cells in the view at once since they're subviews. In AppKit you have a single class per column (generally) that gets reused, like a stamp.

Search around for NSTableView, NSCell examples.