[prev in list] [next in list] [prev in thread] [next in thread]
List: gtkmm
Subject: RE: Deriving from Gtk::ListStore
From: "Murray Cumming" <murrayc () murrayc ! com>
Date: 2004-11-26 9:57:10
Message-ID: 34641.217.10.50.85.1101463030.spork () webmail ! murrayc ! com
[Download RAW message or body]
> Sorry mate,
>
> I was asking why it was that the 'create' mechanism you use is needed -
> out
> of interest,
Because classes that are used via RefPtr<> should never be used without
RefPtr<>, because they must be reference-counted, because their memory
management depends on this. By making the constructor protected, we
prevent you from ever getting, for instance, a bare Gtk::TreeModel*. So,
because you have no constructor, you need some other way to instantiate a
TreeModel. The API forces you to do the right thing.
Murray Cumming
murrayc@murrayc.com
www.murrayc.com
www.openismus.com
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic