[Mono-osx] HandleDidClickTableColumn Issue

Aaron Oneal aaron.oneal at spicypixel.com
Thu Nov 29 19:47:39 UTC 2012


Can you share a repro project out somewhere?

The current auto-delegate event code sometimes requires that you keep a 
reference around to the object you're subscribing to or any number of 
weird issues crop up when the GC kicks in as I discovered in bug #8585. 
In this case, are you hanging onto tblTabella somewhere outside of the 
method where you're doing your subscribing?

As I recall, the runtime also appears to overwrite (without throwing or 
at least writing a warning to the console) any custom delegate you may 
have set on an object and replaces it with the automatic one during 
event subscription. Are you setting a custom delegate somewhere and then 
later subscribing to this event which might be unbinding your custom 
delegate?

> Robert Verdes <mailto:italo_roby at yahoo.it>
> November 29, 2012 2:53 AM
> I have a NSTableView with a Custom NSTableViewDataSource;
> The TableView is cell based view
> the problem i have is that when i try to handle this event
> tblTabella.DidClickTableColumn += HandleDidClickTableColumn;
> my data doesn't show anymore
> It just enter GetRowCount but doesn't enter anymore in GetObjectValue
> When i comment the row //tblTabella.DidClickTableColumn +=
> HandleDidClickTableColumn; the data is shown
> but i need to handle that event to be able to sort data based on the 
> column
> the user clicked
> Is there any other way of doing it?
>
>
>
>
> --
> View this message in context: 
> http://mono.1490590.n4.nabble.com/HandleDidClickTableColumn-Issue-tp4657571.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/375f313d/attachment.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/375f313d/attachment.jpg>


More information about the Mono-osx mailing list