Thanks Quincey - here's the code:
[[resultsTableView
tableColumnWithIdentifier:@"startDateColumnIdentifier"] bind:@"title"
toObject:resultsArrayController
withKeyPath:@"arrangedObjects.topic.taskStartStringForPanel" options:nil];
If the cell for the column is an NSTextFieldCell, and the binding is "value",
this displays the string successfully, but when I change to an NSButtonCell and
try to bind "title", I get the error message.
Gideon
On 18/07/2010, at 4:14 PM, Quincey Morris wrote:
>
> You've got your terminology backwards (at least in part), which may indicate
> that you've got your binding backwards too.
>
> You don't want to bind *to* the button cell, but to bind the button cell
> (specifically, the button cell's "title" binding) to some string property of
> some core data object.
>
> Are you trying to bind in code? If so, you should post the code.
>
> The fact that "title" is read-only is irrelevant to what I gather you're
> trying to do. All it means is that (after the binding is established) setting
> the button cell's title property does not propagate via the binding to the
> string property to which it is bound. But you're not trying to do that anyway.
>
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [email protected]