mail-archives/gtk-sharp-list/2009-February/009436.html

112 строки
4.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Visual studio claims TreeView.SetCellDataFunc deprecated??
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Visual%20studio%20claims%20TreeView.SetCellDataFunc%0A%20deprecated%3F%3F&In-Reply-To=1235052422.11748.10.camel%40linux-teg2.site">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="009435.html">
<LINK REL="Next" HREF="009447.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Visual studio claims TreeView.SetCellDataFunc deprecated??</H1>
<B>dabatla</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Visual%20studio%20claims%20TreeView.SetCellDataFunc%0A%20deprecated%3F%3F&In-Reply-To=1235052422.11748.10.camel%40linux-teg2.site"
TITLE="[Gtk-sharp-list] Visual studio claims TreeView.SetCellDataFunc deprecated??">dabatla at gmail.com
</A><BR>
<I>Fri Feb 20 04:33:22 EST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="009435.html">[Gtk-sharp-list] Visual studio claims TreeView.SetCellDataFunc deprecated??
</A></li>
<LI>Next message: <A HREF="009447.html">[Gtk-sharp-list] different color rows for GtkTreeView
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#9436">[ date ]</a>
<a href="thread.html#9436">[ thread ]</a>
<a href="subject.html#9436">[ subject ]</a>
<a href="author.html#9436">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>
Mike Kestner-4 wrote:
&gt;<i>
</I>&gt;<i> On Wed, 2009-02-18 at 23:44 -0800, dabatla wrote:
</I>&gt;&gt;<i> Hi there, I'm using TreeView.SetCellDataFunc(...) quite extensively in my
</I>&gt;&gt;<i> code to do my data bindings, but I just noticed that VS claims that the
</I>&gt;&gt;<i> method is deprected? Is this true? I couldn't find any mention of it in
</I>&gt;&gt;<i> the
</I>&gt;&gt;<i> mono docs?
</I>&gt;<i>
</I>&gt;<i> [Obsolete (&quot;Replaced by SetCellDataFunc (CellRenderer, TreeCellDataFunc)
</I>&gt;<i> overload&quot;)]
</I>&gt;<i> public void SetCellDataFunc (Gtk.CellRenderer cell_renderer,
</I>&gt;<i> Gtk.TreeCellDataFunc func, IntPtr func_data, Gtk.DestroyNotify destroy)
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> I assume you mean this method on TreeViewColumn. That's the only
</I>&gt;<i> deprecated overload I can find. I'm surprised VS doesn't report the
</I>&gt;<i> &quot;Replaced by&quot; message we've included. We deprecated this overload since
</I>&gt;<i> it exposes the func_data and destroy notification delegate which are C
</I>&gt;<i> persistence mechanisms which we can handle automatically in C#.
</I>&gt;<i>
</I>&gt;<i> --
</I>&gt;<i> Mike Kestner &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">mkestner at gmail.com</A>&gt;
</I>&gt;<i>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Gtk-sharp-list maillist - <A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">Gtk-sharp-list at lists.ximian.com</A>
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</A>
</I>&gt;<i>
</I>&gt;<i>
</I>
Yes, I did mean TreeViewColumn, sorry about that....
I think VS just doesn't have a proper mechanism to indicate that it was
replaces by a overload.
Thanks, that clarifies things.
--
View this message in context: <A HREF="http://www.nabble.com/Visual-studio-claims-TreeView.SetCellDataFunc-deprecated---tp22095409p22117535.html">http://www.nabble.com/Visual-studio-claims-TreeView.SetCellDataFunc-deprecated---tp22095409p22117535.html</A>
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="009435.html">[Gtk-sharp-list] Visual studio claims TreeView.SetCellDataFunc deprecated??
</A></li>
<LI>Next message: <A HREF="009447.html">[Gtk-sharp-list] different color rows for GtkTreeView
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#9436">[ date ]</a>
<a href="thread.html#9436">[ thread ]</a>
<a href="subject.html#9436">[ subject ]</a>
<a href="author.html#9436">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
mailing list</a><br>
</body></html>