From: Eloy D. <elo...@gm...> - 2008-01-19 18:02:54
|
Hi Ferhat, Unfortunately that error is too much of a general problem to be able to diagnose for me. Could you try to get some more detailed info on which code is causing the problem? Cheers, Eloy On 18-jan-2008, at 22:59, Ferhat Ayaz <fer...@ya...> wrote: > 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 > > > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. > Try it now. > --- > ---------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |