Custom tableview cells

Discussion in 'Mac Programming' started by Samppaa, Oct 25, 2010.

  1. Samppaa macrumors regular

    Mar 26, 2010
    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?
  2. kainjow Moderator emeritus


    Jun 15, 2000
    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.

Share This Page