Laurent Sansonetti
lsans****@apple*****
Sat Dec 23 09:20:10 JST 2006
Oops, forgot to forward to the list... Begin forwarded message: > From: Laurent Sansonetti <lsans****@apple*****> > Date: December 23, 2006 1:10:07 AM CEST > To: Eloy Duran <eloy.****@gmail*****> > Subject: Re: Create tests for wrapped frameworks... > > Salutations, > > >>> > Serious problems: >>> > - RubyCGPDFViewer (see attachment) >>> >>> Should be fixed! >> >> Almost, it doesn't crash anymore the way it did :) >> But there were 2 little bugs, I've attached a diff. >> >> - NSApp.mainWindow.windowControler.document.pdfView >> + NSApp.mainWindow.windowController.document.pdfView > > Touché! > > >> class MyDocument < NSDocument >> + attr_accessor :pdfView >> >> ib_outlets :pdfView, :window > > Are you sure about this one? I believe that ib_outlets will create > the accessor method. > >>> > - RubyQTKitSimpleDocument: >>> I believe that this error is due to the fact that you may have some >>> very old bridge support files in /Library/BridgeSupport. Could you >>> adjust the BRIDGE_SUPPORT_PATH environment variable to point to >>> the ./ >>> framework/bridge-support directory of your apple-unstable branch >>> source tree, and try again? >> >> Well I deleted the old bridgesupport files, but the >> BRIDGE_SUPPORT_PATH env is set correctly as it's defined in my run.rb >> script that I mailed to list the other day. >> So I actually don't think that was the problem... >> Because the error has changed into: >> /Users/eloy/Documents/DEVELOPMENT/RubyCocoa/src/apple-unstable/ >> framework/build/Default/RubyCocoa.framework/Versions/A/Resources/ >> ruby/osx/objc/oc_import.rb:155:in >> `ns_import': undefined method `NSClassFromString' for OSX:Module >> (NoMethodError) >> from /Users/eloy/Documents/DEVELOPMENT/RubyCocoa/src/apple- >> unstable/framework/build/Default/RubyCocoa.framework/Versions/A/ >> Resources/ruby/osx/objc/oc_import.rb:119:in >> `const_missing' >> [...] > > Mmh this error is very bad, I suspect that RubyCocoa could even not > interpret Foundation.xml. I would bet that it didn't find the XML > file (if you run with "$DEBUG = true" you should see a message or > something). Are you sure BRIDGE_SUPPORT_PATH really points to the > right directory? (e.g. if you add "p ENV['BRIDGE_SUPPORT_PATH']" at > the beginning of rb_main.rb?) > > Cheers, > Laurent who goes sleeping