Custom tableview cells

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

  1. macrumors regular

    Joined:
    Mar 26, 2010
    Location:
    Jyväskylä, Finland
    #1
    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. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    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