Re: tableview, button with view and bindings
Re: tableview, button with view and bindings
- Subject: Re: tableview, button with view and bindings
- From: R <email@hidden>
- Date: Fri, 01 Jul 2011 14:17:35 -0700 (PDT)
Quincey,
Thanks! All now working as planned. I had to learn about tableview
column identifiers to make sure I was adding the image to the correct
column.
Thanks again for taking the time to respond. Hopefully I'll soon be
able to help more than beHelped!
Have a great weekend -- Ron
On Jul 1, 11:07 am, Quincey Morris <email@hidden>
wrote:
> On Jul 1, 2011, at 07:33, R wrote:
>
> > throwing exceptions when the binding controller key is
> > "arrangeObjects". Note that all other data is using arrangedObjects
> > fine. But, placing an image on the button with this config is
> > failing.
>
> > I can get an image to display using the "selection" controller key.
> > But of course the wrong image will display when changing rows.
>
> Yes, sorry, I misled you. I looked at a similar thing in one of my own NIB files, but didn't notice that it wasn't similar enough.
>
> You can bind from a cell's bindings in a table view, but you can't (AFAIK) bind in a row-dependent manner. This transparent binding through rows is a feature only of table columns, and isn't available from the cells.
>
> You'll need to use the tableView:willDisplayCell:forTableColumn:row: delegate method. Retrieve the object value for the row, then get the object's image and set the cell's image property to the image.
>
> _______________________________________________
>
> 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
>
>
> This email sent to email@hidden
_______________________________________________
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