[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] plotting a buffer in a gui panel



On Oct 23, 2007, at 6:17 AM, Stephan Wittwer wrote:

I think the problem is mainly
^window.front
in the end of the method code ArrayedCollection:plot.

Yes, this is exactly it. It's not such good OOP practice to make unnecessary assumptions about the type of object somebody might pass in.

I would vote simply for ^window.tryPerform(\front) - the .front call is really intended for cases when the plot method opens the window itself. If you are passing in a container, presumably you already own the window and you want to keep control over when the window becomes visible.

hjh


: H. James Harkins

: jamshark70@xxxxxxxxxxxxxxxxx

: http://www.dewdrop-world.net

.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:


"Come said the Muse,

Sing me a song no poet has yet chanted,

Sing me the universal."  -- Whitman