[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [FR-devel] FreeRIDE Error -- make_current is an undefined method.
From: |
Curt Hibbs |
Subject: |
RE: [FR-devel] FreeRIDE Error -- make_current is an undefined method. |
Date: |
Mon, 15 Jul 2002 07:22:38 -0700 |
Curt Hibbs wrote:
> >
> > This "NilRenderer" will catch all method calls and just do nothing. The
> > renderer method will keep getting called until the Renderer is set by
> > the EditPaneRenderFox plugin. It's a hack, but it works.
>
> I like the basic technique here. The only thing wrong is that the client
> code should not have to do this.
>
> To move it out of hack status all we need to do is to install your
> NilRenderer as the manager of the base ui slot ("/system/ui") and
> make sure
> that occurs before most other initializations in the UI system. As real
> managers (renderers) get installed for various components, they will
> override this NillRenderer in the base slot for their local subtree.
I didn't really think it through before I wrote the about. I believe your
original "hack" is correct, and not really a hack at all. We might be able
to think of a better solution, but until then this is quite reasonable.
I'm working on it now and will check it in soon...
Curt