From: Don Oh <dy...@ya...> - 2007-12-10 14:03:34
|
Hi, I'm relatively new to rubycocoa, encountered the following error in my simple (first) test app using rubycocoa: In my NSDocumentController subclass, def openUntitledDocumentAndDisplay_error(displayDocument, outError) ... return super_openUntitledDocumentAndDisplay_error(display, outError); end I get the following runtime error message: <MyDocumentController: 0x3dd560>2007-12-10 04:39:25.617 QTParse[20475:813] MyDocumentController#openUntitledDocumentAndDisplay_error: OSX::OCDataConvException: Cannot convert the argument #1 as '^@' to Objective-C /Builds/Debug/QTParse.app/Contents/Resources/MyDocumentController.rb:25:in `super_openUntitledDocumentAndDisplay_error' /Builds/Debug/QTParse.app/Contents/Resources/MyDocumentController.rb:25:in `openUntitledDocumentAndDisplay_error' /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:51:in `NSApplicationMain' /Builds/Debug/QTParse.app/Contents/Resources/rb_main.rb:22 It appears the outError parameter needs to be converted to the correct type before call into its super method? Can somebody help please? thanks, -don |