From: Ferhat A. <fer...@ya...> - 2008-01-20 12:14:14
|
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 ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |