[Mono-osx] HandleDidClickTableColumn Issue

Aaron Oneal aaron.oneal at spicypixel.com
Thu Nov 29 22:51:19 UTC 2012


I filed this as bug #8679.

https://bugzilla.xamarin.com/show_bug.cgi?id=8679

Robert, is it OK if I attach your zip file to the bug as the repro?
> Aaron Oneal <mailto:aaron.oneal at spicypixel.com>
> November 29, 2012 1:48 PM
> 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");
>             }
>         }
>
>
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
> Robert Verdes <mailto:italo_roby at yahoo.it>
> November 29, 2012 12:39 PM
> http://hosssting.altervista.org/Archivio.zip here it is
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20121129/2c507568/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postbox-contact.jpg
Type: image/jpeg
Size: 1205 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20121129/2c507568/attachment.jpg>
-------------- 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/2c507568/attachment-0001.jpg>


More information about the Mono-osx mailing list