Allison Newman
demal****@mac*****
Wed Dec 17 15:58:56 JST 2008
Hi Arthur, Well, I don't see anything obviously wrong with what you have done. Have you tried logging the value of 'variable' for each instance variable? Also, what is the datasource that you are using for your NSTsbleView? Alli Envoyé de mon iPhone Le 17 déc. 08 à 07:51, Arthur Chafonov <actuo****@gmail*****> a écrit : > Hello. > > I'm new to Cocoa and RubyCocoa. I have exception raised at my small > application. > > My code get some NSTableView object and calls addColumn method with > created column. > > Here's some portion of the code that does this work: > @blocks[0].instance_variables.each do |variable| > variable.sub!(/^@/, '') > column = OSX::NSTableColumn.alloc.initWithIdentifier_(variable) > column.headerCell.setStringValue_(variable); > @blockView.addTableColumn_(column) > end > > Than some code to load data: > @blockView.setRowHeight_(17) > @blockView.reloadData > > At a glance all works fine — I have many colums that represents my d > ata. But when I scroll the table to view columns, I have exception, > probably at last column of viewing. > > This is the log from Debbuger Console: > /Users/arthur/Documents/Projects/metro/scripts/StationSolver/build/ > Release/StationSolver.app/Contents/Resources/rb_main.rb:22:in > `NSApplicationMain': NSInvalidArgumentException - *** -[NSProxy > doesNotRecognizeSelector:copyWithZone:] called! (OSX::OCException) > from /Users/arthur/Documents/Projects/metro/scripts/StationSolver/ > build/Release/StationSolver.app/Contents/Resources/rb_main.rb:22 > > System information: > Mac OS X 10.5.5 (9F33), Darwin Kernel Version 9.5.0: Wed Sep 3 > 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 > XCode 3.0 > ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] > RubyCocoa 0.13.1 > _______________________________________________ > Rubycocoa-devel mailing list > Rubyc****@lists***** > http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel