[Mono-osx] HandleDidClickTableColumn Issue

Robert Verdes italo_roby at yahoo.it
Thu Nov 29 22:56:59 UTC 2012


No problem
just maybe change the name of the project and the data in it


________________________________
 Da: Aaron Oneal [via Mono] <ml-node+s1490590n4657590h8 at n4.nabble.com>
A: Robert Verdes <italo_roby at yahoo.it> 
Inviato: Giovedì 29 Novembre 2012 23:51
Oggetto: Re: HandleDidClickTableColumn Issue
 

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?

[hidden email]
>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
>[hidden email]
>http://lists.ximian.com/mailman/listinfo/mono-osx
>
>[hidden email]
>November 29, 2012 12:39 PM
>http://hosssting.altervista.org/Archivio.zip here it is
>
_______________________________________________ 
Mono-osx mailing list 
[hidden email] 
http://lists.ximian.com/mailman/listinfo/mono-osx


________________________________
 
If you reply to this email, your message will be added to the discussion below:http://mono.1490590.n4.nabble.com/HandleDidClickTableColumn-Issue-tp4657571p4657590.html 
To unsubscribe from HandleDidClickTableColumn Issue, click here.
NAML



--
View this message in context: http://mono.1490590.n4.nabble.com/HandleDidClickTableColumn-Issue-tp4657571p4657592.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20121129/b11be683/attachment.html>


More information about the Mono-osx mailing list