I recently added a LOT of classes to my class library and I've ran
into some order of compilation problems. I am seeing a handful of
ERROR: Cannot find superclass 'HJHObjectGui' for class 'MIDIRecGUI'
ERROR: Cannot find superclass 'ObjectGui' for class 'PeakMonitorGui'
ERROR: Cannot find superclass 'SCScope' for class 'SCSoundFileView'
The files where these classes are defined contain other classes with
different super classes. In 2003 there was a thread that discussed
this (included below), and the conclusion was that you needed to
break the classes out into multiple files. Is this still the case? If
so, the following files need to be changed:
-SCSoundFileView.sc in the main distribution
-MIDISuite/MIDIRecGUI.sc, PeakMonitor/PeakMonitor.sc and
SeqBuilder.sc in James's dewdrop lib
-View/SCFreqScope.sc in Lance Putnam's library
And probably others that I don't have installed. Is it possible to
lift this restriction? At the least we should clearly document it...
> that's the same problem yes.
> its annoying because it means you can't put a class and its gui
> onto the same file.
> I did just add the gui class ModelImplementsGuiBody which is now
> for several light weight
> gui classes. then the model can simple implement guiBody and
> no need for a separate
> gui class. if your gui class needs its own variables and more than
> method, you can graduate
> it to a normal gui class.
> it doesn't ever matter what directory it is in, so no fears.
> james, is it the dual number / coarse-fine gui you were
> On Wednesday, July 2, 2003, at 02:35 PM, Alo Allik wrote:
> > I ran into a similar problem a few days ago and here's the
> > from
> > cruxxial:
> > "don't inherit from more than one superclass (other than Object)
> in a
> > given file.
> > in other words, you could move your class to its own file and it
> > work."
> > and i must admit it did....not sure if this is relevant in your
> > On Tue, 1 Jul 2003, James Harkins wrote:
> >> I'm trying to subclass NumberEditorGui and it's telling me it
> >> find the superclass when compiling the class library. Where do I
> >> to put my file so it will compile right? I don't want to put it
> in the
> >> crucial directory because then I'll lose it in my own stuff.
> >> Help!
> >> James
sc-dev mailing list