[MacRuby-devel] hotcocoa virus

Gary Weaver gary.weaver at duke.edu
Thu Mar 31 10:24:41 PDT 2011


I'm not the HotCocoa authority, but in 
http://www.macruby.org/hotcocoa/getting_started.html it states:

"HotCocoa is part of the MacRuby <http://www.macruby.org> distribution 
which will ship with figure versions of OS X."

(I think it is supposed to be "future" not "figure", btw.)

But, according the Rich's readme:
https://github.com/richkilmer/hotcocoa

"HotCocoa used to be included in MacRuby but is now managed as a 
separate gem. This will allow HotCocoa to accept contributions and 
evolve more quickly."

The link on that page to example source for MacRuby is broken btw:
http://svn.macosforge.org/repository/ruby/MacRuby/trunk/sample-macruby

The wiki on HotCocoa which is the most up-to-date source for info, I 
think, is here:
http://www.macruby.org/trac/wiki/HotCocoa

And the versions listed on 
http://www.macruby.org/trac/wiki/HotCocoaResources are currently:

    * http://github.com/richkilmer/hotcocoa/network (Network Graph)

    * http://github.com/richkilmer/hotcocoa (Rich Kilmer)

    * http://github.com/dj2/hotcocoa/ (Dan Sinclair)

Somehow, I thought the official version from somewhere on the site 
(maybe not the wiki) used to point to: 
https://github.com/richkilmer/hotcocoa but I could only find those links 
in my recent perusal of the macruby.org and macruby wiki.

Maybe it would be good if someone eventually created an official 
hotcocoa/hotcocoa repo in GitHub (especially now that macruby/macruby is 
there).

Also, there are still references to HotCocoa in MacRuby (latest from 
GitHub):

MacRuby (master)]$ grep -r HotCocoa *
instruby.rb:      when 'hotcocoa', 'rb_nibtool'
misc/release/MacRuby.pmdoc/01macruby-contents.xml: ....
rakelib/builder/options.rb:  $stderr.puts "The 'build_as_embeddable' 
build configuration has been removed because it is no longer necessary. 
To package a full version of MacRuby inside your application, please use 
`macrake deploy` for HotCocoa apps and the `Embed MacRuby` target for 
Xcode apps."
sample-macruby/About MacRuby Examples.rtf:\b HotCocoa
sample-macruby/About MacRuby Examples.rtf:\b0  directory contains 
examples for the MacRuby's HotCocoa\
sample-macruby/Scripts/growl/hotcocoa_growl.rb:require 'hotcocoa'
sample-macruby/Scripts/growl/hotcocoa_growl.rb:  include HotCocoa
sample-macruby/Scripts/growl/hotcocoa_sample.rb:require 'hotcocoa_growl'
test-macruby/cases/hotcocoa/mapper_test.rb:require 'hotcocoa'
test-macruby/cases/hotcocoa/mapper_test.rb:  include HotCocoa::Mappings
test-macruby/cases/hotcocoa/mappings_test.rb:require 'hotcocoa'
test-macruby/cases/hotcocoa/mappings_test.rb:  include HotCocoa
test-macruby/cases/hotcocoa/object_ext_test.rb:require 'hotcocoa'
test-macruby/cases/hotcocoa/object_ext_test.rb:    assert_equal 
HotCocoa,           Object.full_const_get("HotCocoa")
test-macruby/cases/hotcocoa/object_ext_test.rb:    assert_equal 
HotCocoa::Mappings, Object.full_const_get("HotCocoa::Mappings")
test-macruby/cases/hotcocoa/plist_test.rb:require 'hotcocoa'
test-macruby/cases/hotcocoa/plist_test.rb:  include HotCocoa


On 3/31/11 12:59 PM, Vincenzo Piombo wrote:
> Ok, thanks a lot, Gary: I will try them.
>
> So no "official" repository is going to be put up ?
>
> Enzo
>
> On Thu, Mar 31, 2011 at 6:52 PM, Gary Weaver <gary.weaver at duke.edu 
> <mailto:gary.weaver at duke.edu>> wrote:
>
>     Enzo,
>
>     What I meant is that there are various versions of HotCocoa on
>     GitHub. You might want to try someone's repo that was updated more
>     recently. The "official"/original version (
>     https://github.com/richkilmer/hotcocoa ) is probably the one you
>     are using, but you can find a more recent one with patches, etc.
>     by looking at its network in GitHub:
>     https://github.com/richkilmer/hotcocoa/network
>
>     for example, some more recent versions at time of writing are:
>     https://github.com/gmanley/hotcocoa
>     https://github.com/jamis/hotcocoa
>
>     Gary
>
>
>
>     On 3/30/11 5:32 PM, Vincenzo Piombo wrote:
>>     Gary,
>>     "Virus" was joke of course, however I changed the name on gist.
>>     I doubt it is a hotcocoa issue, but as soon as I have some time
>>     will try to replicate it with an IB version.
>>
>>     What do you mean by "where you got it" ?  The code is mine, I was
>>     trying to do something along the lines of this
>>     http://www.nongnu.org/gstutorial/en/ch13s04.html.
>>
>>
>>     By the way, do you know where can I find a working drag&drop
>>     macruby example ?
>>
>>     Enzo
>>
>>     On Wed, Mar 30, 2011 at 11:17 PM, Gary Weaver
>>     <gary.weaver at duke.edu <mailto:gary.weaver at duke.edu>> wrote:
>>
>>         Enzo,
>>
>>         It might be a translation issue, but I wouldn't call that a
>>         virus (it doesn't replicate, it is just something that
>>         freezes your computer). I wouldn't call it "Virus" in the
>>         gist either, if I were you.
>>
>>         If it is a bug in HotCocoa, than it may be a bug (or at least
>>         undesired functionality if it freezes your Mac) in MacRuby or
>>         OS X, so you might want to dig deeper and provide more info
>>         on version (and where you got it, since it is in various
>>         places in GitHub) of HotCocoa.
>>
>>         Thanks!
>>         Gary
>>
>>
>>         On 3/29/11 5:27 PM, Vincenzo Piombo wrote:
>>>         Hi all,
>>>          I was trying to add drag & drop capabilities to a hotcocoa
>>>         program and stumbled into a problem that really puzzles me:
>>>         a macruby program can freeze your mac !
>>>
>>>         I uploaded the buggy fragment here:
>>>         https://gist.github.com/893300
>>>
>>>         Don't run it unless you are prepared to reboot your machine
>>>         the hard way, don't even "Force quit" works.
>>>         In the instructions I say to launch it twice, but every drag
>>>         & drop with any app  after the crash freezes the app.
>>>
>>>
>>>         I'm using macruby 0.9, tried 0.10 but hotcocoa does not work
>>>         with it (but this is another story !)
>>>
>>>         Hope someone can tell me if I did something wrong or found a
>>>         bug somewhere.
>>>
>>>         Enzp
>>>
>>>
>>>
>>
>>
>>         _______________________________________________
>>         MacRuby-devel mailing list
>>         MacRuby-devel at lists.macosforge.org
>>         <mailto:MacRuby-devel at lists.macosforge.org>
>>         http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>>
>
>
>     _______________________________________________
>     MacRuby-devel mailing list
>     MacRuby-devel at lists.macosforge.org
>     <mailto:MacRuby-devel at lists.macosforge.org>
>     http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110331/9a74b95c/attachment.html>


More information about the MacRuby-devel mailing list