Re: Mixing TableView Bindings
Re: Mixing TableView Bindings
- Subject: Re: Mixing TableView Bindings
- From: Matt Neuburg <email@hidden>
- Date: Fri, 05 Feb 2010 08:48:38 -0800
- Thread-topic: Mixing TableView Bindings
On Wed, 3 Feb 2010 08:32:53 -0700, Joe <email@hidden> 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 = email@hidden, <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 (email@hidden)
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:
This email sent to email@hidden