On 4/17/06, Jon A. Cruz <jon@...18...> wrote:
One general solution to decoupling this safely (and one that The GIMP uses), is to have things hooked to a "Context" object. This works as basically a mediator pattern.
When an action is created, it can be created to the Context instead of a Desktop directly. Then the Context follows the current Desktop (either as things are switched, or upon actual use by calling sp_active_desktop) and passes things along.
I know you like the "context" idea. But please compare your description above with the current situatuion: we have a global Application object which follows the current desktop and passes it along whenever you call SP_ACTIVE_DESKTOP. So what's the difference?
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org