[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sc-devel] drawFunc called despite window not visible
more swing vs cocoa differences.
how can i avoid that these functions are called. the windows are not
visible and shouldn't refresh!
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
};
)
#|
fredrikolofsson.com klippav.org musicalfieldsforever.com
|#