On Wed, 3 Feb 2010 08:32:53 -0700, Joe <j...@ntsengineering.net> said: >Hello, > >I have a NSTableView with a column of checkboxes. I have the checkbox value bound to an NSInteger instance in a class which is in an array bound as the content to an array controller. When the program starts the column is filled with 16 rows and the checkbox is set to off. Other columns with bindings seem to work OK, but the checkbox column gives the error > > Cannot create BOOL from object ( > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0, > 0 >) of class NSCFArray > >This column is not bound to a core data managed object. The other columns are. I can get rid of this error if I remove the binding on the other columns that are bound to core data managed objects. > >So, the question is can a TableView have columns where some columns are bound to core data managed objects and others to unmanaged objects?
When faced with a problem like this, make a tiny new project that implements the simplest aspect of the problem. In this case, you'd make a one-column table and bind the column in such a way as to do what you want. That way, you eliminate the element of "mixing", and you will soon see whether it is the "mixing" or some other issue with how the binding is set up that is causing the difficulty. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.html#applescriptthings _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com