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

Re: [Sc-devel] drawFunc called despite window not visible



hi fredrik,

in fact i have this line commented out in JSCWindow:

// if( visible, { JPen.protRefresh( func, this, server, penID, this.id )});

probably because in cocoa you (used to) need to refresh explicitly(?).

in JSCUserView i do always refresh.

i agree that this is incosistent. i will change the code to only update when the view and all its parents and the window are visible. i think that is how it should behave.

ciao, -sciss-


Am 16.01.2008 um 16:01 schrieb Fredrik Olofsson:

GUI.cocoa
GUI.swing

(
var w= GUI.window.new;
w.drawHook= {
	1111.postln;	//cocoa yes, swing no
};
)

(
var w= GUI.window.new;
var u= GUI.userView.new(w, Rect(0, 0, 10, 10));
u.drawFunc= {
	1111.postln;	//cocoa yes, swing yes
};
)