Benjamin Jackson
bhjac****@gmail*****
Tue Dec 4 12:59:30 JST 2007
Hey Eloy, That makes sense (kind of, in a way, I guess) :P Will start porting for compatibility. Any other surprises waiting for me in the changes around and after 0.13.0? Thanks, B On Dec 3, 2007 12:31 PM, Eloy Duran <eloy.****@gmail*****> wrote: > Hey Benjamin, > > This used to work because NSString implemented the method_missing > method to delegate calls to a ruby String instance, > which does implement #match. So NString/NSCFString has nothing to do > with this. As Satoshi-san pointed out a while back, > all the string methods have been ported, except for those which return > match data. So if you want this to work, you are > expected to explicitly call it on a ruby string instance: > > some_string.to_s.match() > > Hope this helps. > > Eloy > > On 3 dec 2007, at 15:15, Benjamin Jackson wrote: > > > Getting a lot of crashes after updating RC to the head of the trunk > > related to NSCFStrings being returned instead of NSStrings. Did > > something change recently related to this? I was under the > > impression that the conversion was pretty seamless by now: > > > > /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/ > > osx/objc/oc_wrapper.rb:50:in `ocm_send': Can't get Objective-C > > method signature for selector 'match:' of receiver #<NSCFString > > "object_0"> (OSX::OCMessageSendException) > > > > - Ben > > _______________________________________________ > > Rubycocoa-devel mailing list > > Rubyc****@lists***** > > http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel > > _______________________________________________ > Rubycocoa-devel mailing list > Rubyc****@lists***** > http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel > -------------- next part -------------- An HTML attachment was scrubbed... Download