[MacRuby-devel] is hotcocoa dead ?

Gary Weaver gary.weaver at duke.edu
Thu Mar 24 08:01:41 PDT 2011


Vincenzo,

There was work on HotCocoa at least as recently as Jan 11, 2011, I think.

Here is the github graph of changes:
https://github.com/richkilmer/hotcocoa/network

As of today (3/24/2011), this is the most recent list of committers (I 
think):
https://github.com/gmanley/hotcocoa/contributors

dj2 (dan sinclair)
richkilmer (Richard Kilmer)
isaac (Isaac Kearse)
mattetti (Matt Aimonetti)
jamis (Jamis Buck)
hellopatrick (Patrick)
reborg (reborg)

Last change in the wiki was 10 months ago (6/10/2010):
http://www.macruby.org/trac/wiki/HotCocoa?action=history

Unfortunately, I think it is an effort off to the side of the macruby 
team and core developers that hasn't gotten much attention. I know many 
(including myself) would like to see it succeed though. It was a lot of 
fun to work with for the few days that I did, and fun toys that you can 
create cool things with quickly can often do really well. The main 
problems I think have been the lack of attention, lack of development, 
and the large size of the produced application, at least in earlier 
versions.

Gary


On 3/23/11 5:52 PM, Vincenzo Piombo wrote:
> Hello all,
>   I discovered macruby since a few weeks and I'm really enthusiast.
> I begun playing with it and really like the hotcocoa approach, but it 
> seems stopped since more than a year, is it still maintained ?
>
> Anyway, I think I found a bug in the hotcocoa canvas part: the text 
> method draws at a very big size regardless of the chosen font. The 
> problem is that the transformation matrix for the text is not set.
>
> Here is the fix if anyone needs it:
>
> module HotCocoa::Graphics
>   class Canvas
>     def text(txt="A", x=0, y=0)
>       affine = CGContextGetCTM(@ctx)
>       CGContextSetTextMatrix (@ctx, affine);
>       txt = txt.to_s unless txt.kind_of?(String)
>       if @registration == :center
>         width = textwidth(txt)
>         x = x - width / 2
>         y = y + @fsize / 2
>       end
>       CGContextShowTextAtPoint(@ctx, x, y, txt, txt.length)
>     end
>   end
> end
>



More information about the MacRuby-devel mailing list