From: Ferhat A. <fer...@ya...> - 2008-01-18 21:59:36
|
Hi, I'm trying to run an activerecordsupport application. I have added an ActiveRecordSetController ArrayController in IB and set the class name properly (in my case ProductProxy). here my simple controller code (inspired by the blog article by Eloy Duran) require 'osx/cocoa' class CNController < OSX::NSWindowController kvc_accessor :products def init if super_init ActiveRecord::Base.establish_connection({ :adapter => 'mysql', :host => 'localhost', :username => 'root', :password => '', :database => 'xyz_development' }) @products = Product.find(:all).to_activerecord_proxies return self end end end I have generated product.rb and product_proxy.rb using the handy generate.rb script. So, the error message I get is the following [Session started at 2008-01-18 22:51:02 +0100.] /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24:in `NSApplicationMain': NSInvalidArgumentException - *** -[NSProxy doesNotRecognizeSelector:copyWithZone:] called! (OSX::OCException) from /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24 The Debugger has exited with status 1.The Debugger has exited with status 1. Any idea? Thanks! Ferhat ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |