supernova: fix for small audio vector sizes
[supercollider.git] / examples / CocoaBridge / boolean.scd
blob8234b72f6dab90adcc988c491ed5d175ac856599
2 // return booleans 
4 o = SCNSObject("NSWindow", "initWithContentRect:styleMask:backing:defer:", [Rect(100,540,400,200), 15, 2, 1]);
5 o.invoke("makeKeyAndOrderFront:", [nil], true);
8 c = 0; // window should close = false
10 o.setDelegate;
11 o.nsDelegate.addMethod("windowShouldClose:", "i", "@", { arg method, args; [method, args].postln;  ^c });
13 // try to close the window  then set c to 1
14 c = 1; // window should close = true
17 o.release;
19 SCNSObject.dumpPool;