hi all,
I'm having some fun with Cocos2D[1] Mac Version and MacRuby. Some time
ago I wrote ruby bindings for the iPhone version[2], but MacRuby makes
those bindings unnecessary (at least for mac).
So far everything works great! The only problem I'm having so far is
in cases like this:
{{{
some_no
Hi Rolando,
You shouldn't need to retain the objects as instance variables to keep them
from premature garbage collection. In this case, I assume that the Cocos2D
framework has been built with -fobjc-gc (otherwise you would get a link error
at runtime), but that it's not fully compatible with t
I suspect that there is considerably more overhead in creating a Hash as
compared to an Array and that using an Array is more efficient unless the Array
will become large. I am wondering about how large the Array would have to be
before it becomes more efficient to use a Hash. Consider the foll
I'm not perfectly sure this applies to MacRuby, but I suspect it should since
our Array is implemented on top of NSMutableArray:
http://ridiculousfish.com/blog/archives/2005/12/23/array/
But the gist is CFArrays more or less switch to using hashes internally at some
point.
On 2011-01-14, at 0