[Gtk-sharp-list] Custom sorts in NodeStore

Bradford Hovinen hovinen at math.toronto.edu
Sun Jan 15 21:25:21 EST 2006


Hello all,

How does one install a custom sort with Gtk.NodeStore? I've tried the
following:

	entries = new NodeStore (typeof (RegisterEntry));
	sortedEntries = new TreeModelSort (entries);
	view = new TreeView (sortedEntries);

Compilation fails because a NodeStore does not appear as a TreeModel to
the C# compiler. If I cast explicitly to a TreeModel, then there is a
run-time failure of a similar nature. Is there another way to do this
using NodeStore?

-- 
Bradford Hovinen              http://www.math.utoronto.ca/hovinen/
Department of Mathematics     Email:  hovinen at math.utoronto.ca
University of Toronto
40 St. George St., Room 6290
Toronto, ON, M5S 2E4 Canada
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20060115/8ee060bd/attachment.bin


More information about the Gtk-sharp-list mailing list