• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: tableview, button with view and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: tableview, button with view and bindings (From: R <email@hidden>)
 >Re: tableview, button with view and bindings (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: From a view rect to a screen rect
  • Next by Date: Re: Getting Image from plist
  • Previous by thread: Re: tableview, button with view and bindings
  • Next by thread: Re: How Do I get informed when -showHelp: has been called?
  • Index(es):
    • Date
    • Thread