[MacRuby-devel] passing an address as method param
Laurent Sansonetti
lsansonetti at apple.com
Sun Oct 5 16:37:27 PDT 2008
Hi Claudio,
On Oct 3, 2008, at 1:05 PM, Claudio Poli wrote:
> hi everyone,
> I have this:
>
> urlData = NSURLConnection.sendSynchronousRequest urlRequest,
> returningResponse:response, error:error
>
> where
> urlRequest is a NSURLRequest
> response is a NSURLResponse
> error is a NSError
>
> in Objective-C response and error would be &response and &error.
> running this in MacRuby gives:
>
> `sendSynchronousRequest:returningResponse:error:': can't convert Ruby
> object `NSURLResponse' to Objective-C value of type
> `^@' (ArgumentError)
Dealing with objects returned by reference is currently not supported,
as you noticed in #131.
I will fix this soon. I will support the RubyCocoa way (omitting the
argument will return it with the return value, in an array) and also
the possibility to create and pass a Pointer object.
Laurent
More information about the MacRuby-devel
mailing list