Re: Binding to title of NSButtonCell in a table view
Re: Binding to title of NSButtonCell in a table view
- Subject: Re: Binding to title of NSButtonCell in a table view
- From: Gideon King <email@hidden>
- Date: Sun, 18 Jul 2010 16:21:49 +1000
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@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