CopyWithZone problem in RubyCocoa

Hello,

I’m trying to use the NSBrowser class in a simple app. Everything works
find when the window opens and the NSBrowser display’s the array of
instances. But after I change the array of instances and send the NSBrowser
instance a “reloadColumnZero” message, I get an error about my class not
implementing ‘copyWithZone:’.

I can’t understand what is going on and why it things it doesn’t have that
method. It is defined up on NSObject as a class method. Now I’ve tried
making the domain class “SellItem” both a Ruby subclass as well as a
subclass of NSObject. Same error both ways.

Thanks for the help…

···


Sam Griffith Jr.
email: staypufd@mac.com
Web site: http://homepage.mac.com/staypufd/index.html


/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/o
c_import.rb:75:in objc_derived_class_method_add': could not add 'copyWithZone' to class 'SellItem': Objective-C cannot find it in the superclass (RuntimeError) from /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/o c_import.rb:75:inns_overrides’
from
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/o
c_import.rb:73:in each' from /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/o c_import.rb:73:inns_overrides’
from
/Users/samgriff/HEBDemo/build/HEBDemo.app/Contents/Resources/SellItem.rb:11
from
/Users/samgriff/HEBDemo/build/HEBDemo.app/Contents/Resources/rb_main.rb:14:i
n require' from /Users/samgriff/HEBDemo/build/HEBDemo.app/Contents/Resources/rb_main.rb:14:i nrb_main_init’
from
/Users/samgriff/HEBDemo/build/HEBDemo.app/Contents/Resources/rb_main.rb:14:i
n each' from /Users/samgriff/HEBDemo/build/HEBDemo.app/Contents/Resources/rb_main.rb:14:i nrb_main_init’
from
/Users/samgriff/HEBDemo/build/HEBDemo.app/Contents/Resources/rb_main.rb:18

HEBDemo has exited with status 1.