[Mono-osx] outlineViewWillDisplayCell Issues

mateyboy john.tear at me.com
Sat Sep 3 05:29:30 EDT 2011


Hi

I have an NSOutlineView and I connect the delegate to the correct class and
then implement the following method:

[Export ("outlineView:willDisplayCell:forTableColumn:item:")]
public void outlineViewWillDisplayCell(NSOutlineView outlineView, NSObject
*cell*, NSTableColumn tableColumn, NSObject item)
{
...
}

The problem I have is that sometimes *cell* is null. I can handle this by
checking for a null value but the outline view is then not displayed
properly (it's almost as if it is drawn with a cached image and no text).

Why would a null value be passed when it is attempting to draw a particular
cell? Is there any way around this, or possibly something that I might be
doing?

Apologies if this has already been addressed, I could not find anything
during search.

Regards

John

--
View this message in context: http://mono.1490590.n4.nabble.com/outlineViewWillDisplayCell-Issues-tp3787655p3787655.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list