[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] move Model to Core?
hi ron,
On Sun, Nov 23, 2003 at 01:07:21PM -0500, Ronald J. Kuivila wrote:
> How is an extension class is going to do it for you? It seems like gui
> dependancies are always seeping into the general library. For example,
> what would you do about the calls to Server-makeWindow?
i'd make a method, say startUpInitialGUI or something, with an empty
implementation in Main.sc. the class extension would overwrite this
method to do something useful. same goes for newSCWindow etc.
a more generic approach would be to have a global 'feature list'. each
class of primitives (GUI, MIDI, HID, etc.) could push a symbol on the
feature list and each SC class accessing primitives during
startup/shutdown/CmdPeriod could test for a feature and only call the
primitive when the feature is present. thoughts?
to me, it doesn't matter much because i have my own version of Main
anyway and know what to exclude from the library. but the out-of-the
box experience for new users on linux would be improved a lot.
<sk>