On Aug 21, 2009, at 2:06 PM, Clay Bridges wrote:
Forgive my caveman-programmer terminology, but it seems to overwrite
the class symbol. Extending Laurent's example (kind of):
gort:~ clay$ macruby -e "p NSPredicate.object_id; p
NSPredicate.methods(false,true); class NSPredicate; def hey;end; end;
Forgive my caveman-programmer terminology, but it seems to overwrite
the class symbol. Extending Laurent's example (kind of):
gort:~ clay$ macruby -e "p NSPredicate.object_id; p
NSPredicate.methods(false,true); class NSPredicate; def hey;end; end;
p NSPredicate.object_id; p NSPredicate.methods(fal
On Fri, Aug 21, 2009 at 3:25 PM, Laurent
Sansonetti wrote:
> I see, I haven't tried with 0.4. Maybe the problem is fixed in trunk :-)
My bad, I try to specify. Yes, it's 0.4.
Thanks
Clay
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
I see, I haven't tried with 0.4. Maybe the problem is fixed in trunk :-)
Laurent
On Aug 21, 2009, at 12:10 PM, Jeremy Voorhis wrote:
I've reproduced it using 0.4, for whatever that's worth. If you open
a builtin class (e.g. NSSet) with the class keyword, the object_id
changes. If you open i
I've reproduced it using 0.4, for whatever that's worth. If you open a
builtin class (e.g. NSSet) with the class keyword, the object_id changes. If
you open it with class_eval, the object_id is unchanged.
Best,
Jeremy
On Fri, Aug 21, 2009 at 11:47 AM, Laurent Sansonetti
wrote:
> On Aug 21, 2009,
On Aug 21, 2009, at 9:33 AM, Clay Bridges wrote:
I'm using MacRuby to test some of my ObjC classes. I was wondering if
there was a canonical way to monkey patch these classes.
Just open them as you would do in Ruby.
Consider, the following where Cell is an ObjC class:
irb(main):001:0> Cell.
I'm using MacRuby to test some of my ObjC classes. I was wondering if
there was a canonical way to monkey patch these classes.
Consider, the following where Cell is an ObjC class:
irb(main):001:0> Cell.object_id
=> 4387749088
irb(main):002:0> class Cell
irb(main):003:1> def whee
irb(main):004:2