[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sc-devel] Yo sciss! Changes needed for JStartRow



I was just checking whether my CD-ROM examples for the book would work against SwingOSC and found the following changes are necessary to get FlowView:startRow to display properly. (A couple of minor changes are required in the main class library, small, noninvasive -- I already committed them.)

With these changes, FlowViews display correctly, but you get a ton of Java null pointer exceptions posted. The GUI looks and behaves right, so I'm not concerned about it except that it would bother users.

Could these go into the SwingOSC release for the CD-ROM? I'll file a bug at sourceforge.

Thanks,
James

diff /Users/dewdrop/SCServer/downloads/SwingOSC/SuperCollider/SCClassLibrary/SwingOSC/JStartRow.sc ./JStartRow.sc
4c4
<       var     view;
---
>       var     <>view;
7c7
<               new = super.new;
---
>               new = super.new(parent);
9c9
<               ^new.init
---
>               ^new.init(parent)
14c14,15
<       prInit {
---
>       prInit { |argParent, bounds, viewclass, argServer|
>               server = argServer;

diff /Users/dewdrop/SCServer/downloads/SwingOSC/SuperCollider/SCClassLibrary/SwingOSC/SwingGUI.sc ./SwingGUI.sc
85c85
< //    *startRow { ^JStartRow }
---
>       *startRow { ^JStartRow }



: H. James Harkins

: jamshark70@xxxxxxxxxxxxxxxxx

: http://www.dewdrop-world.net

.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:


"Come said the Muse,

Sing me a song no poet has yet chanted,

Sing me the universal."  -- Whitman