Laurent Sansonetti
lsans****@apple*****
Thu Nov 2 20:26:19 JST 2006
Hi Kimura-san, This is great, but what's this '¥' character? Why not: $ irb >> "abc_def_ghi".gsub(/([^_])_/, '\1:') => "abc:def:ghi" Laurent On Nov 2, 2006, at 4:18 AM, kimura wataru wrote: > Sorry, The previous change was wrong. > > === framework/src/ruby/osx/objc/oc_import.rb > ================================================================== > --- framework/src/ruby/osx/objc/oc_import.rb (revision 1324) > +++ framework/src/ruby/osx/objc/oc_import.rb (revision 1333) > @@ -217,7 +217,7 @@ > alias_method :ib_outlets, :ns_outlets > > def _ns_behavior_method_added(sym) > - sel = sym.to_s.gsub(/[^(A_*)]¥(_¥)/, ':') > + sel = sym.to_s.gsub(/([^_])_/, '¥1:') > sel << ':' if instance_method(sym).arity > 0 and /[^:]¥z/ =~ > sel > return unless _ns_enable_override?(sel) > ns_override sel > > > On Thu, 2 Nov 2006 11:44:59 +0900, kimura wataru wrote: >> Hi, >> >> I found a bug in _ns_behavior_method_added() and fixed trunk and >> apple-unstable branch. The procedure of getting a selector from >> ruby's symbol was not correctly. So, RubyCocoa did not override >> methods contains "_". >> >> > _______________________________________________ > Rubycocoa-devel mailing list > Rubyc****@lists***** > http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel