[Rubycocoa-devel 1377] Exception at the table scrolling

Zurück zum Archiv-Index

Arthur Chafonov actuo****@gmail*****
Wed Dec 17 15:51:22 JST 2008


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  
data. 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2419 bytes
Desc: not available
Url : http://lists.sourceforge.jp/mailman/archives/rubycocoa-devel/attachments/20081217/3f3605a2/attachment.bin 


More information about the Rubycocoa-devel mailing list
Zurück zum Archiv-Index