- Google Summer of Code project: Sub-pixel anti-aliasing
- Google Summer of Code Project: Alternate System Timers
- Anthy Ported to Haiku, Binary Available on Bebits
- Premonitions of a rising sun
- GSoc Swap File Project
- Google Summer of Code Project : Writing a CIFS client
- Google Summer of Code: Zeroconf!
- Git for Haiku (#1)
- A weekend in SF, for LugRadio Live USA 2008
- Haiku Websites Stats and Other Trivia
Code structur of an gui Application.
Hm, I also have a printed version of this book but as I start programming I don't like it much. When I looked in it today I found nothing that can explain my question.
There is only "hello world + gui + be" code. I search for something more general. Like what belonges in the gui/ how much programm code should be in the gui or whats the best way to communicate between main programm and gui.
With main programm I mean not the main function but the part that do some real stuff like connect to the net and processing some data from the net.
With gui I mean the part that display the data or gives input to the main programm.
Maybe I miss something in this book because for me it's no fun to read it. In this case can you give me a chapter?
thx
Hi ZzLeCzZ 8-).
You are right in the fact that it is common practice for software developers (Especially in the commercial scene, and generally in the OO area) to develop their software in two parts: The View (Or the User Interface, GUI, etc), and the Model (Or the Business Logic, Backend, etc).
You could use a derived BApplication class and then refer to the be_app everywhere in the model.
You could also create a Controller class, so that nothing in the View knows about the Model, and vice-versa.
TBH you really just need to play around with things. Try a few methods, and if they don't work just chalk them down as experience.
Remember that it's all really upto the developer. There are preferred methods, but i highly doubt anyone is going to beat you with a stick for not doing it 'their way' (At least at this point ;-).
Well that's my 10cents anyway. I hope it helps.
---
Mathew Schofield
"Show me someone perfect, and i'll show you an idiot."






Hi ZzLeCzZ,
this is explained very nicely in the O'Reilly book "Programming the Be Operating System". It is out of print, however, it can be downloaded in PDF format here:
http://www.oreilly.com/catalog/beosprog/book/
You can also find it, including the source code presented in the book, in BeShare by looking for the book title.
If you have further questions, just ask again here or at beuser.de :-)
Greetings,
Finn