Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Samppaa

macrumors regular
Original poster
Mar 26, 2010
168
23
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

Moderator emeritus
Jun 15, 2000
7,958
7
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.