<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Thanks for the link to the Smoke documentation -- I'll get on that.</span></div><div><br><span></span></div><div><span>Re: "special casing", I think that's the best option.  The alternative is to document what's going to screw up if the client code doesn't special-case it.  But from what I can tell, that hasn't even been done -- witness the letter to this list from June 2009, the one that never got answered.  Therefore, I think that proceeding with these special cases, and waiting for testers to note where more needs to be done, is the right way to go.</span></div><div><br><span></span></div><div><span>Steven Boswell</span></div><div><br></div>  <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size:
 12pt;"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight: bold;">From:</span></b> Arno Rehn <arno@arnorehn.de><br> <b><span style="font-weight: bold;">To:</span></b> Steven Boswell II <ulatekh@yahoo.com>; kde-bindings@kde.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, December 2, 2011 10:20 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Kde-bindings] Qyoto on Windows<br> </font> <br>
On Friday 02 December 2011 06:21:14 you wrote:<br>> That's OK, I understand how things are.  But could you (or someone else on<br>> this list) point me in the direction of some developer documentation that<br>> would allow me to understand how Qyoto and Smoke work?  The source-code<br>> comments aren't much to go on.<br>There's http://techbase.kde.org/Development/Languages/Smoke with information <br>about how Smoke works and how to generate a Smoke library. The example is <br>still using the monolithic smoke qt lib, which doesn't exist anymore in the <br>newer Smoke versions. But the principle is still the same, except that now you <br>do "init_qtcore_smoke", "init_qtgui_smoke" etc...<br>Qyoto is only a bridge between the Smoke stuff and C#, adding custom <br>marshallers (QList<type> -> System.Collections.Generic.List, etc.) and some <br>garbage collection handling.<br><br>> BTW, in response to my earlier query about
 SetModel() doing something to<br>> prevent garbage-collection of the incoming item model, it appears the<br>> solution is easy, though it involves editing kalyptus-generated files that<br>> say "DO NOT EDIT".  All I did was add "protected QAbstractItemModel<br>> m_Model" to QAbstractItemView, and "m_Model = model;" to<br>> QAbstractItemView.SetModel() and QTreeView.SetModel().  This takes care of<br>> the problem that I was reproducing in my code.  Granted, there are many<br>> other places where this would have to be done, but other than editing<br>> machine-generated files, the idea appears to be sound.<br>Yep, that's what I meant with 'special casing' specific methods. The problem is <br>that there may be more than one way to set a model. So it might work for this <br>specfic function call, but in general it still screws up. Iff there's more than <br>one way, you have to make sure you keep them all in sync,
 otherwise it might <br>screw up again, etc...<br><br><br>> Steven Boswell<br>> <br>> <br>> <br>> ________________________________<br>>  From: Arno Rehn <<a ymailto="mailto:arno@arnorehn.de" href="mailto:arno@arnorehn.de">arno@arnorehn.de</a>><br>> To: Steven Boswell II <<a ymailto="mailto:ulatekh@yahoo.com" href="mailto:ulatekh@yahoo.com">ulatekh@yahoo.com</a>>; KDE bindings for other<br>> programming languages <<a ymailto="mailto:kde-bindings@kde.org" href="mailto:kde-bindings@kde.org">kde-bindings@kde.org</a>> Sent: Friday, December 2, 2011<br>> 7:01 AM<br>> Subject: Re: [Kde-bindings] Qyoto on Windows<br>> <br>> On Friday 02 December 2011 05:50:00 Steven Boswell II wrote:<br>> > OK, I'll try your changes sometime today.<br>> > <br>> > I wanted to build my own binaries because I wanted the opportunity to<br>> > track down bugs.  Your binaries aren't totally
 functional yet, after<br>> > all.  Also, I was hoping that someone on this mailing list would know<br>> > how to modify the existing projects the right way to cope with the<br>> > Windows build issues.<br>> <br>> If I had more time, I would be willing to help, so that at least the<br>> buildsystem would work fine on Windows. However I'm quite busy atm and can't<br>> spare much time.<br>> I'm afraid your on your own, more or less. But I'll help whenever I can<br>> spare the time.<br>-- <br>Arno Rehn<br><br><br> </div> </div>  </div></body></html>