[Gtk-sharp-list] Custom sorts in NodeStore

Mike Kestner mkestner at novell.com
Tue Jan 17 11:20:23 EST 2006


On Sun, 2006-01-15 at 21:25 -0500, Bradford Hovinen wrote:

> 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?

Until NodeStore's internal TreeModel gets a TreeSortable implementation,
this won't be possible, you'll have to manually sort the underlying
collection.  The good news is that the first person that does it can
contribute their implementation for the next Gtk# release.  ;-)

NodeStore doesn't implement TreeModel because NodeStore's purpose for
existence is to hide that API. It's highly unlikely NodeStore will ever
expose TreeModel, so it won't work with any of the TreeModel extension
objects like TreeModelSort or TreeModelFilter.

-- 
Mike Kestner <mkestner at novell.com>



More information about the Gtk-sharp-list mailing list