Re: sanity check: deriving from Gtk::Range



On Thu, 2008-07-10 at 11:52 -0500, Joaquim Schmidlap wrote:
> Thanks to all for the replies, lots of good stuff to chew on. One  
> question:
> 
> On Jul 9, 2008, at 9:26 PM, Paul Davis wrote:
> >
> > control/view components of an MVC system typically use a HAVE-A
> > relationship with the model part.
> >
> > in this case, your "dial" would HAVE-A Range, not use IS-A Range. in
> > real life that typically means a Gtk::Range* or Gtk::Range&
> 
> I thought the Gtk::Adjustment was the model in this case, and the  
> Range is the base class for several views (Scrollbar, Scale)  
> containing that model. False?

Correct, I was just spacing out on the names of Gtk things. Yes, an
Adjustment would be the model (HAS-A) for the controller/view whether
its a Range, Dial, Scrollbar or whatever.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]