From: Eloy D. <e....@su...> - 2008-01-21 00:26:00
|
Hi, FYI, this was a bug in the ActiveRecord bindings code and has been fixed in the trunk rev. 2179 Eloy On 20 jan 2008, at 13:14, Ferhat Ayaz wrote: > Hi, > > sorry if I bother the list. I get an error when I try to bind a > keypath like field1.childField > > Here is the simple code > > class Cashier < ActiveRecord::Base > end > > > class Product < ActiveRecord::Base > belongs_to :cashier > end > > The cashier has a field 'realname'. When I now try to bind a > tablecolumn to an ActiveRecordSetController arraycontroller with > ProductProxy content by using the key path 'cashier.realname', the > application produces the following error message > > OSX::OCException: NSInternalInconsistencyException - Cannot remove > an observer <NSTableBinder 0x1a430a0> for the key path > "cashier.realname" from <ProductProxy 0x21c66d0>, most likely > because the value for the key "cashier" has changed without an > appropriate KVO notification being sent. Check the KVO-compliance of > the ProductProxy class. > > > Do you have any idea? I tried to add kvc_accessor unfortunately > without success > > > class ProductProxy < OSX::ActiveRecordProxy > kvc_accessor :cashier > end > > Thanks for any help > Ferhat > > > Looking for last minute shopping deals? Find them fast with Yahoo! > Search > .------------------------------------------------------------------------- > 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 |