[Mono-osx] Events not called (WillDisplayCell)

Curtis Wensley curtis.wensley at gmail.com
Mon May 21 17:25:18 UTC 2012


Tomas Trescak wrote
> 
> I have subscribed to the NSTableView event "WillDisplayCell" but when 
> Table is displayed, this event is never raised ;(
> I populate table through Datasource.
> 

This looks like a typo in the export signature in AppKit.cs.  I've submitted
a pull request to fix this up here:

https://github.com/mono/monomac/pull/61

For now, you can just add a different method to your NSTableViewDelegate
like so:

[Export("tableView:willDisplayCell:forTableColumn:row:")]
public void MyWillDisplayCell (NSTableView tableView, NSObject cell,
NSTableColumn tableColumn, int row)
{
// implementation
}

Hope this helps!


--
View this message in context: http://mono.1490590.n4.nabble.com/Events-not-called-WillDisplayCell-tp4576331p4648471.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list