[macruby-changes] [1843] MacRuby/branches/experimental/sample-macruby/PagePacker/PackerView. rb

source_changes at macosforge.org source_changes at macosforge.org
Thu Jun 11 20:41:50 PDT 2009


Revision: 1843
          http://trac.macosforge.org/projects/ruby/changeset/1843
Author:   lsansonetti at apple.com
Date:     2009-06-11 20:41:50 -0700 (Thu, 11 Jun 2009)
Log Message:
-----------
fixed a method call to pass a Pointer object instead of the Array, because the Array version will probably not be supported anymore

Modified Paths:
--------------
    MacRuby/branches/experimental/sample-macruby/PagePacker/PackerView.rb

Modified: MacRuby/branches/experimental/sample-macruby/PagePacker/PackerView.rb
===================================================================
--- MacRuby/branches/experimental/sample-macruby/PagePacker/PackerView.rb	2009-06-12 03:25:22 UTC (rev 1842)
+++ MacRuby/branches/experimental/sample-macruby/PagePacker/PackerView.rb	2009-06-12 03:41:50 UTC (rev 1843)
@@ -144,7 +144,10 @@
     @foldLines.lineToPoint NSMakePoint(midV, bottom)
         
     @cutLine = NSBezierPath.new
-    @cutLine.setLineDash [7.0, 3.0], count:2, phase:0
+    p = Pointer.new(:double, 2)
+    p[0] = 7.0
+    p[1] = 3.0
+    @cutLine.setLineDash p, count:2, phase:0
     @cutLine.moveToPoint NSMakePoint(midV, upperH)
     @cutLine.lineToPoint NSMakePoint(midV, lowerH)
     @cutLine.lineWidth = 1.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090611/53cb3d1e/attachment.html>


More information about the macruby-changes mailing list