Enzo,

I've not used it in a few versions, but when I used to do "macrake deploy", it would copy all of the macruby framework, which at least used to be large, making the .app usually ~150MB. Isaac Kearse had a fix for that a while back, and possibly someone else has fixed it since.

More info:
http://isaac.kearse.co.nz/2010/02/01/packaging-hotcocoa/
http://www.mail-archive.com/macruby-devel@lists.macosforge.org/msg03690.html

List archives search:
http://www.mail-archive.com/search?q=macruby-devel+hotcocoa&l=macruby-devel%40lists.macosforge.org

Gary


On 3/24/11 3:24 PM, Vincenzo Piombo wrote:
Gary,
 Thanks for the info.
I'm surprised you say there could be size problems in the produced app. Do you mean that if I write the same app using IB and hotcocoa the last one would be sensibly larger ? Why ?

Enzo

On Thu, Mar 24, 2011 at 4:01 PM, Gary Weaver <gary.wea...@duke.edu <mailto:gary.wea...@duke.edu>> wrote:

    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


    _______________________________________________
    MacRuby-devel mailing list
    MacRuby-devel@lists.macosforge.org
    <mailto:MacRuby-devel@lists.macosforge.org>
    http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to