From: kimura w. <ki...@us...> - 2005-08-15 13:00:58
|
Hi, This is a bug of 0.4.1 or earlier. This bug was fixed in CVS. http://sourceforge.net/mailarchive/forum.php?thread_id=6997917&forum_id=7197 Sun, 14 Aug 2005 17:56:02 +0100, Will Thimbleby wrote: >This is a simple case that keeps causing me problems. A ruby object >passed to Cocoa and back doesn't come back as a ruby object. But >worse its accessors don't return ruby objects either. Why does this >code not work? IIs there something I should be doing?? > > >puts arr.objectAtIndex(0) # <RBObject: 0x4e51f0> >puts arr.objectAtIndex(0).class # OSX::OCObject >puts arr.objectAtIndex(0).num.class # OSX::NSDecimalNumber > >puts "<10" if arr.objectAtIndex(0).num < 10 #crash > -- kimura wataru |