In the example code on page 16 of NKS I found this problem. On the @o.move line, if you change "height - y" to "height -y", Shoes crashes on Mac OS.

If you change the "width - x" to "width -x" you get a Wrong number of arguments error.

Hope this helps.

        Adam

Here's the code from NKS p. 16:

Shoes.app do
  @o = oval :top => 0, :left => 0, :radius => 40

  stack :margin => 40 do
    title "dancing with a circle"
    subtitle "how graceful and round"
  end

  motion do |x,y|
    @o.move width - x, height - y
  end

end



Reply via email to