[MacRuby-devel] Out parameters with MacRuby

Brian Marick marick at exampler.com
Mon Apr 27 14:23:17 PDT 2009

On Apr 26, 2009, at 12:09 PM, rebotfc wrote:

> errorp = Pointer.new_with_type("@")
> result = NSXMLDocument.alloc.initWithData(data,  
> options:NSXMLDocumentValidate, error:errorp)
> # access error
> errorp[0]

So the RubyCocoa style of having by-reference arguments returned as  
extra return values is not included in MacRuby?

Brian Marick, independent consultant
Mostly on agile methods with a testing slant
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick

More information about the MacRuby-devel mailing list