<br><br><div class="gmail_quote">On Wed, Oct 21, 2009 at 6:09 AM, tonyb <span dir="ltr">&lt;<a href="mailto:tonyb.lx@ntlworld.com">tonyb.lx@ntlworld.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tuesday 20 Oct 2009 13:48:55 Alvaro Soliverez wrote:<br>
&gt; Tony, can you check if it&#39;s possible to have the GNC work differently?<br>
&gt;<br>
&gt; I don&#39;t know if the GNC loader should remain in the GUI or in the engine,<br>
&gt; depending on which resources it uses.<br>
&gt; If it should be in the engine, then the GUI calls have to be separated and<br>
&gt; the dialogs should be replaced by exceptions.<br>
<br>
</div>I&#39;ve been sorta following this thread, but I&#39;m not quite clear what the<br>
problem is vis-a-vis the GNC reader.<br>
<br>
The original reader was part of the engine. Rewriting it was my first KMM<br>
project (since I converted from GNC and was reasonably familiar with it). I<br>
introduced the GUI stuff to provide some options and more flexibility - in<br>
perfect ignorance of the &#39;no GUI in engine&#39; rule. When Thomas pointed that out<br>
to me, we moved it into the converter section.<br>
<br>
(I&#39;m on holiday tomorrow - again! - for 6 days so don&#39;t look for an early<br>
reply.)<br>
<br></blockquote></div><br>Ok. I had a quick glance at the code and I think in your case you don&#39;t have to do anything, at least for now.<br>What I think we should do is separate all the GUI from the actual code doing the reading. That way, if other application intend to access our file, they can do it. In case of errors, exceptions should be thrown, so that our GUI, or other application&#39;s GUI can catch the errors and treat them accordingly.<br>
<br>So, what Thomas told you still stands, but we are moving, or at least, I intend this to happen, some code, which is not GUI but rather IO, back to the engine.<br><br>So, should we go ahead with the change? Do we move the open/close/save IO code to the engine? Which class? MyMoneyFile I think has the best odds here, rather than a new class.<br>
<br>I have been kind of on and off lately. Life has been rough here, with changes at work, and too much stuff going on at home. I haven&#39;t had much time to code lately, and then I haven&#39;t been sleeping much, so my code mostly sucks. :)<br>
Just a quick explanation as to why I don&#39;t do this myself. My concentration skills are on par with those of a kid with attention disorder. :)<br><br>Regards,<br>Alvaro<br><br><br><br>