From: Jim Menard Date: 2003-04-02T03:27:25+09:00 Subject: Re: RubyCocoa and addresses of pointers I wrote: > Some methods in Objective-C require the address of a pointer, so the method > can fill in the value of the pointer. How do I do this in RubyCocoa? I think I've answered my own question. You need to initialize the variable to the type of the object that is needed. For example, templateDate = NSObject.alloc.init errorString = NSString.alloc.init conversionResult = dateFormatter.getObjectValue_forString_errorDescription(templateDate, @fpDate.stringValue, errorString) At least, it works and my app doesn't crash any more. That's good enough for me. Jim -- Jim Menard, jimm@io.com, http://www.io.com/~jimm/ "The theory of computation states that all automatons can be emulated by a Turing machine. I have a less abstract but more practical motto: If you can do it on Intel, you can do it damn near anywhere!" -- Eugene O'Neil