[Pyobjc-dev] Customizing trouble with NSCell & NSTableView
Brought to you by:
ronaldoussoren
From: Dinu G. <gh...@da...> - 2003-05-20 12:22:30
|
Hi, I'm trying to use NSTableView delegate method for changing the background of individual cells. The method name is this one: tableView_willDisplayCell_forTableColumn_row_(self, view, cell, col, row) But I always seem to receive a None value for the row argument and even if the method returns and does nothing else my app just crashes with a "signal 10 (SIGBUS)". This book actually says, cells in default columns taken from IB could not change their background color, and you had to replace them in IB with new ones (p. 687), which I did, but without any effect): http://www.amazon.com/exec/obidos/tg/detail/-/0672322307 Has anybody else had success using this method? The ObjC sample provided in the book on p. 681, TableRowFormatting2, which is also available here (chap. 18) works fine: http://www.cocoaprogramming.net Might also be of interest for David Eppstein's Tabulizer code... ;-) Regards, Dinu -- Dinu C. Gherman ...................................................................... "Our nation must come together to unite." (George W. Bush, 4 Jun. 2001) |