Hi Riccardo, I did not look into the code here, but have a strong feeling what might go on here. Most likely your cells are editable, or at least selectable. And when they get selected, a different formatting method gets called that your specific formatter did not override. This may be editingStringForObjectValue:, but I am not sure. If the same code behaves correctly on Cocoa, we might have to look into the fallback code of NSFormatter.
Hope this helps, Fred On the road Am 19.02.2015 um 00:16 schrieb Riccardo Mottola <[email protected]>: > I am trying to debug a strange bug in TalkSoup (as of current sources in GAP) > > At right, a user-list is displayed inside a TableView. This is tableView in > StandardChannelController. > The content of the data source is not just an array of strings, but of users > (see Channel.m) > > To display stuff there is a ChannelFormatter. > > The formatter is set once by settinng the formatter of the column > (setDataCell) with said formatter > (StandardChannelController.m:149) > > All this seems fine, you join a channel and all looks nice. Usernames are > displayed with nicks and you can scroll the tableview. > > However, if you select a user, then that item (and at the next redraw, e.g. > scroll, all items) displays as Object dump, not a string. > The formatting method is not called any longer. > > I suppose the "formatter" of the cell is lost or anyway not invoked anymore. > > Why that? What is wrong? > > Riccardo > > _______________________________________________ > Discuss-gnustep mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnustep _______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
