[Mono-osx] HandleDidClickTableColumn Issue

Aaron Oneal aaron.oneal at spicypixel.com
Thu Nov 29 21:48:47 UTC 2012

I took a quick look at the project. Subscribing to any event that 
internally sets the Delegate property (not just 
HandleDidClickTableColumn) causes the view not to render.

My suspicion is that once the delegate is set that other methods on the 
protocol are getting invoked and the implementation of the 
auto-generated delegate provides insufficient information for rendering. 
I can see that protocol methods like CoreGetRowView are being invoked, 
but GetDataCell is not.

I created a subclass of the delegate myself and manually assigned it as 
below and it rendered, so something in the auto-generated delegate 
binding is not working or there is something special you have to do that 
I don't know about.

This should get you up and running again in the meantime if you avoid 
subscribing to events and instead subclass and override.

         tblTabella.Delegate = new MyTableViewDelegate();
         class MyTableViewDelegate : NSTableViewDelegate {
             public override void DidClickTableColumn (NSTableView 
tableView, NSTableColumn tableColumn)
                 Console.Out.WriteLine("Clicked table column");

> Robert Verdes <mailto:italo_roby at yahoo.it>
> November 29, 2012 12:39 PM
> http://hosssting.altervista.org/Archivio.zip here it is
> --
> View this message in context: 
> http://mono.1490590.n4.nabble.com/HandleDidClickTableColumn-Issue-tp4657571p4657582.html
> Sent from the Mono - OSX mailing list archive at Nabble.com.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20121129/2bf7b94d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compose-unknown-contact.jpg
Type: image/jpeg
Size: 770 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20121129/2bf7b94d/attachment-0001.jpg>

More information about the Mono-osx mailing list