[Rubycocoa-devel 801] Re: Methods not found

Zurück zum Archiv-Index

Eloy Duran eloy.****@gmail*****
Thu Mar 1 22:55:10 JST 2007


It might be handy to add this one to oc_attachments.rb too.
Coincidentally I saw when looking at the src that I only added
to_a to NSIndexSet, but it might also be handy to include Enumerable?

Eloy

On 3/1/07, Jacob Wallström <jacob****@ghost*****> wrote:
> Hi Laurent,
>
> While preparing the demo for you I turned out to be mistaken. The
> whole line looked like this:
>
> session.changeEnumeratorForEntityNames([syncName]).to_a
>
> The changeEnumeratorForEntityNames method returns a NSEnumerator. For
> some reason the above call was working in RubyCocoa 0.4.3d2. Changing
> the code to
>
> session.changeEnumeratorForEntityNames([syncName]).allObjects
>
> made it work in RubyCocoa 1.0 too. Sorry about that.
>
> /Jacob
>
> On 28 feb 2007, at 16.48, Laurent Sansonetti wrote:
>
> > Hi Jacob,
> >
> > This is a weird problem. At a glance ISDChangeEnumerator is a valid
> > subclass of NSEnumerator so there is no reason why [-objectEnumerator]
> > is called on it. Could you isolate this problem in a separate/distinct
> > project and send it to the list? I may be able to fix it if I can
> > reproduce it.
> >
> > Thanks!
> > Laurent
> >
> > On Feb 28, 2007, at 4:26 PM, Jacob Wallström wrote:
> >
> >> I'm trying out RubyCocoa pre-1.0 from the unstable branch (rev.
> >> 1600). One problem I have run into is the following:
> >>
> >> Exception thrown: Can't get Objective-C method signature for selector
> >> 'objectEnumerator' of receiver #<OSX::ISDChangeEnumerator:0x39d032
> >> class='ISDChangeEnumerator' id=0x15cb3590>
> >> /Checkedout/JacobDocs/GhostAction/trunk/GhostAction/build/
> >> Development/
> >> Ghost Action.app/Contents/Frameworks/RubyCocoa.framework/Resources/
> >> ruby/osx/objc/oc_wrapper.rb:63:in `ocm_send'
> >> /Checkedout/JacobDocs/GhostAction/trunk/GhostAction/build/
> >> Development/
> >> Ghost Action.app/Contents/Frameworks/RubyCocoa.framework/Resources/
> >> ruby/osx/objc/oc_wrapper.rb:63:in `to_a'
> >>
> >> I get it when I make the following call:
> >>
> >> # session is a proper ISyncSession object
> >> session
> >> .changeEnumeratorForEntityNames(["com.apple.calendars.Calendar"])
> >>
> >> The same code was working under 0.4.3d2 (I had imported the Sync
> >> Services classes myself), but when trying with pre-1.0 I get the
> >> error above.
> >>
> >> I'm grateful for any advice.
> >>
> >> Best regards,
> >> Jacob Wallström
> >> http://ghostparksoftware.com
> >>
> >>
> >> _______________________________________________
> >> 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
Zurück zum Archiv-Index