[Rubycocoa-devel 1379] Re: Exception at the table scrolling

Back to archive index

Arthur Chafonov actuo****@gmail*****
Wed Dec 17 16:13:21 JST 2008


Sure, I have logged every 'variable'. Thank you for pointing me on  
that, cause I have found that some instance variable of data source  
class has mysql object as a value. When I removed this variable from  
the process of creation columns, all works fine.
As one of my friends says: "Presence effect."

Thank you.

On 17 Dec 2008, at 09:58 , Allison Newman wrote:

> 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
>
> _______________________________________________
> Rubycocoa-devel mailing list
> Rubyc****@lists*****
> http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel

-------------- 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/dad2585b/attachment.bin 


More information about the Rubycocoa-devel mailing list
Back to archive index