From: Eloy D. <elo...@gm...> - 2007-10-18 14:15:51
|
Hey Javier, If you simply omit the args that should be pointers, do you get instances of ObjcPtr back? Like described in: http://rubycocoa.sourceforge.net/WorkingWithPointers So: inputStream, outputStream = NSStream.getStreamsToHost_port_inputStream_outputStream(host, port) Cheers, Eloy On 10/18/07, Javier Solorzano <jav...@ri...> wrote: > Hi all, > > Anyone knows how to rewrite this in ruby ? I guess it requires > ObjcPtr but I just don't get it. > > NSInputStream *inputStream; > NSOutputStream *outputStream; > > > [NSStream getStreamsToHost:host > port:port > inputStream:&inputStream > outputStream:&outputStream]; > > ... > > > JS > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |