Revision: 7664
http://svn.sourceforge.net/supercollider/?rev=7664&view=revAuthor: cruxxial
Date: 2008-07-08 16:57:38 -0700 (Tue, 08 Jul 2008)
Log Message:
-----------
adding SCWindow:comp in the same vein as SCWIndow:flow
Modified Paths:
--------------
trunk/build/SCClassLibrary/crucial/UncoupledUsefulThings/osx/viewExtensionsOSX.sc
Modified: trunk/build/SCClassLibrary/crucial/UncoupledUsefulThings/osx/viewExtensionsOSX.sc
===================================================================
--- trunk/build/SCClassLibrary/crucial/UncoupledUsefulThings/osx/viewExtensionsOSX.sc 2008-07-08 23:03:35 UTC (rev 7663)
+++ trunk/build/SCClassLibrary/crucial/UncoupledUsefulThings/osx/viewExtensionsOSX.sc 2008-07-08 23:57:38 UTC (rev 7664)
@@ -1,12 +1,19 @@
+ SCWindow {
flow { arg func,bounds;
- var f,comp;
+ var f;
f = FlowView(this,bounds ?? { this.bounds });
func.value(f);
f.resizeToFit;
^f
}
+ comp { arg func,bounds;
+ var f;
+ f = GUI.compositeView.new(this,bounds ?? { this.bounds });
+ f.tryPerform('relativeOrigin_',true);
+ func.value(f);
+ ^f
+ }
}
+ SCView {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
sc-dev mailing list
sc-dev@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-dev