Tom Fuerstner
i.scr****@gmail*****
Thu Mar 1 02:29:38 JST 2007
ok, thank you very much. I will take the SVN route, definitely ! t. On 2/28/07, Laurent Sansonetti <lsans****@apple*****> wrote: > Aah yes, we didn't support passed-by-reference arguments to functions > until very recently (before we only supported them in methods). So you > might want to grab the latest bits from SVN, or wait for a new release. > > Laurent > > On Feb 28, 2007, at 6:12 PM, Tom Fuerstner wrote: > > > I use RubyCocoa-0.10.1 > > > > t. > > > > On 2/28/07, Laurent Sansonetti <lsans****@apple*****> wrote: > >> That's weird, which version of RubyCocoa are you using? > >> > >> Laurent > >> > >> On Feb 28, 2007, at 3:08 PM, Tom Fuerstner wrote: > >> > >> > >>> Hi Laurent, > >> > >>> > >> > >>> I did exactely that within a well initialized Cocoa program but all > >> > >>> I get is : > >> > >>> > >> > >>> "Not enough arguments (expected 1, given 0)" > >> > >>> > >> > >>> That made me curious !? > >> > >>> > >> > >>> Tom > >> > >>> > >> > >>> On 2/27/07, Laurent Sansonetti <lsans****@apple*****> wrote: > >> > >>> > >>>> Hi Tom, > >> > >>> > >>>> > >> > >>> > >>>> The easiest way to deal with functions/constants that return > >> > >>> > >>>> parameters by reference is to omit passing them, and RubyCocoa will > >> > >>> > >>>> return them packed in an array with the regular return value. > >> > >>> > >>>> > >> > >>> > >>>> For example: > >> > >>> > >>>> > >> > >>> > >>>> count = OSX::NSCountWindows() > >> > >>> > >>>> > >> > >>> > >>>> # Note that this function must be called within an initialized > >>>> Cocoa > >> > >>> > >>>> program, otherwise it may return unexpected results. > >> > >>> > >>>> > >> > >>> > >>>> Laurent > >> > >>> > >>>> > >> > >>> > >>>> On Feb 27, 2007, at 6:39 PM, Tom Fuerstner wrote: > >> > >>> > >>>> > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> hello, > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> can some please give an example how to implement an Appkit > >>>>> function > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> which returns a value by reference. > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> e.g.: void NSCountWindows(int *count) > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> How is this best translated into RubyCocoa? > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> thanx. > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> Tom Fuerstner > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> _______________________________________________ > >> > >>> > >>>> > >> > >>> > >>>> > >>>>> 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 > >> > >> _______________________________________________ > >> 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 >