Oh my bad, I thought you said the #trandform method didn't exist, but
you said #translate.
Anyways, regarding the syntax, I personally have no problem with it, I
used to long ago, but it grew on me. The thing is, this isn't easily
fixable without adding layers that map methods (like HotCocoa), nor
Am 01.04.2011 um 14:54 schrieb Eloy Duran:
> Code works for me, so it's not really clear to me which #transform
> method you are missing. Regarding the style, I prefer to use
> parenthesis, which makes it a bit clearer.
I didn't mean functionality, just the style which looks more like objC than
Code works for me, so it's not really clear to me which #transform
method you are missing. Regarding the style, I prefer to use
parenthesis, which makes it a bit clearer. If you really dislike it
and have to use it many times, you could of course wrap it:
$ macirb
irb(main):001:0> class NSAffineTr
Hi,
I just used a little transformation in a new game (pic [1], demo later)
and wrote this which looks rubish and not so ruby-sh:
transform = NSAffineTransform.transform
transform.translateXBy 20, yBy: 20 # looks ugly
transform.concat
The MacRuby examples are all like this, and #translate d