1 Reply Latest reply: Sep 9, 2012 7:54 AM by Tod Kuykendall
Tod Kuykendall Level 4 Level 4 (2,270 points)

I've created bunch of NSTableViews I'm trying to create one that display a single column custom NSTextCell in each row. At the moment everything is working fine and cells are drawing correctly but if I use it long enough it'll crash. It crashes when willDisplay is called and I'm setting the dat into the cell. After digging into it I think that I'm not creating and/or retaining the custom NSTextCell correctly.


Is there a good clean example of when the cell should be created? Should I be creating a cell for each row? The problem is that the display routines gets called over and over and I'm afraid that I'll over create the cells, but right now I think I'm under creating cells so that when a row is deleted it's freeing the cell from under another display cell.


Any thoughts and examples appreciated,