GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Front Backend Communicating

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
kfarrell



Joined: 22 Jun 2007
Posts: 2

PostPosted: Fri Jun 22, 2007 5:02 am    Post subject: Front Backend Communicating Reply with quote

I'm really interested in experimenting with an idea I've had.

I really like the idea of making the UI totally seperate from the engine, not unlike css and html, or mysql and it's front ends.

Now the obvious method is to use network sockets, probably not the safest idea, and I've thought about using shared objects?.

Has anyone got any ideas on other methods I could try?

Is this design choice being used, or is it a pipe dream?
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 495
Location: Portland, OR USA

PostPosted: Sun Jun 24, 2007 10:28 pm    Post subject: Reply with quote

In terms of GTK+ programming, the concept of using libglade to read an XML file for the UI is quite similar to what you're describing.

Model-View-Controller (MVC) programming is a commonly practiced in multiple languages (examples for web development include Java, various PHP toolkits, Ruby on Rails, etc.). Check out this little article: Interfacing Threaded Programming with Gtk+
Back to top
kfarrell



Joined: 22 Jun 2007
Posts: 2

PostPosted: Mon Jun 25, 2007 3:09 am    Post subject: Reply with quote

Thanks Micah, that's exactly what I was after. :D

It's nice to know there's a name for it too, thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP