In order to use these methods I introduced in trunk a class named Pointer. You allocate a Pointer object by using the #new_with_type method in which you pass the Objective-C type encoding. @ is for pointers, i for integers, d for doubles, etc...
# This is not very intuitive, I will implement the RubyCocoa way to deal with pointers as well.
You use it like that:
errorp = Pointer.new_with_type('@')
urlData = NSURLConnection.sendSynchronousRequest(urlRequest, returningResponse:response, error:errorp)
if urlData.nil?
error = errorp[0]
puts "error: #{error.description}"
end