Laurent Sansonetti
lsans****@apple*****
Wed May 30 23:14:13 JST 2007
ありがとうきむらさん! Since this problem is a regression from the latest version, I wonder if we should not make a new bugfix release. Laurent On May 30, 2007, at 4:10 PM, kimura wataru wrote: > Hi, > > The problem was fixed r1789. > This "length" behavior caused the problem[rubycocoa-devel:908]. > I enabled oc_attachment for NSString and invoke objc method for > "length". > > I investigated whether the problem occurs other methods. > > % irb -rosx/cocoa > irb> rb_meths = String.instance_methods(true) > irb> oc_meths = OSX::NSString.objc_instance_methods(true) > irb> rb_meths & oc_meths > => ["length", "class", "hash"] > > I got same results from NSMutableString and NSCFString. > > > On Mon, 28 May 2007 22:26:13 +0900, kimura wataru wrote: >> Hi, >> >> I guessed NSString returns wrong "length" with Ruby String#length. >> >> % irb -r osx/cocoa >> irb> str = OSX::NSString.stringWithString("おはよう") >> irb> $KCODE >> => "NONE" >> irb> str.length >> => 12 >> irb> str.oc_length >> => 4 >> > > _______________________________________________ > Rubycocoa-devel mailing list > Rubyc****@lists***** > http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel