Marc is 100% correct. MVC is a design pattern, not a implementation. But if you are like me, looking at source code helps me learn or get the idea across. :-)
I haven't implemented MVC, but have implemented MGM (Model-GUI-Mediator). MGM fits somewhere between MVC and MVP. I find the MGM design pattern very handy and more appropriate for today's semi-intelligent GUI components. To me it's a better fit than MVC and a much less complicated pattern than MVP. You can read more about MGM at the following address: http://www.atug.com/andypatterns/mgm.htm You can also view my implementation of MGM in the fpGUI or tiOPF projects. I deviated from Andy's idea of using TComponent's "Tag" property and instead used RTTI to implement more generic 'base' mediators. So in the end I have even less code to write in my applications. As a side note, I use MGM successfully in two commercial applications. MGM in fpGUI: http://fpgui.svn.sourceforge.net/viewvc/fpgui/trunk/extras/tiopf/gui/ MGM in tiOPF: http://tiopf.svn.sourceforge.net/viewvc/tiopf/tiOPF2/Trunk/GUI/ The units of interest are: tiGenericEditMediators.pas, tiGenericListMediators.pas and tiCompositeMediators.pas. The tiOPF project also has some demos I created showing how to use them. Regards, - Graeme - On 23/12/2007, ik <[EMAIL PROTECTED]> wrote: > Hello, > > I do not know if Lazarus or fpc-pascal is the right malling list... > Anyway, I'm looking for an implementation of MVC for FPC/Lazarus. > > Does anyone knows about any implementation of that technique in FPC/Lazarus ? > > Thanks, > Ido > -- > http://ik.homelinux.org/ > > _________________________________________________________________ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives > -- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
