[Rubycocoa-devel 1265] Re: Problems using String#match on objc objects in trunk

アーカイブの一覧に戻る

Laurent Sansonetti lsans****@apple*****
Tue Dec 4 22:28:27 JST 2007


On Dec 4, 2007, at 4:59 AM, Benjamin Jackson wrote:

> 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?

Everything should be mentioned in the 0.13.0 release notes.

Laurent

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
>
> _______________________________________________
> Rubycocoa-devel mailing list
> Rubyc****@lists*****
> http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel




More information about the Rubycocoa-devel mailing list
アーカイブの一覧に戻る