[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] Re: cross-platform gui wrappers - draft
Till Bovermann wrote:
> What I do not like is the "implements" array, which has to be filled
> by the developer by hand...
> Is there a way to automate this?
> (e.g. by scanning the list of methods implemented by the specific
> subclass for methods named create*, substituting creat from it and -
> voila: the name.)
hmmm, i think this very efficient. of course, you can use "reflection", like
ParticularGUIFactory.respondsTo( \createMultiSliderView ) // ---> boolean
but what's wrong with defining an array? this is already done for the properties that SCView and its subclasses understand. If you can find a way to avoid string concatenation plus the interprete call, I'd strongly prefer that.
ciao, -sciss-