• 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: How do I refresh NSTableView after programmatically changing bindings on a dataCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I refresh NSTableView after programmatically changing bindings on a dataCell


  • Subject: Re: How do I refresh NSTableView after programmatically changing bindings on a dataCell
  • From: Ken Thomases <email@hidden>
  • Date: Sat, 17 Jul 2010 05:02:46 -0500

On Jul 16, 2010, at 10:16 PM, François Beausoleil wrote:

> I have an NSPopUpButton which holds the names of keys I want to display in an NSTableView. A picture is worth a thousand words: http://skitch.com/francoisb/dc63m/nstableview-redisplay
>
> I have an action on my controller which rebinds the NSTableView's dataCell for the single column to a new value. Calling -[NSTableView reloadData] correctly refreshes the headerCell's title, but not the values. What should I be calling to ensure everything is refreshed?

You're directly binding the cell.  Shouldn't you be binding the table column, itself, and let it take care of its cell?

Also, have you tried invoking -unbind: before rebinding?

Regards,
Ken

_______________________________________________

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

  • Follow-Ups:
    • Re: How do I refresh NSTableView after programmatically changing bindings on a dataCell
      • From: François Beausoleil <email@hidden>
References: 
 >How do I refresh NSTableView after programmatically changing bindings on a dataCell (From: François Beausoleil <email@hidden>)

  • Prev by Date: Re: Data downloading performance
  • Next by Date: Re: Data downloading performance
  • Previous by thread: How do I refresh NSTableView after programmatically changing bindings on a dataCell
  • Next by thread: Re: How do I refresh NSTableView after programmatically changing bindings on a dataCell
  • Index(es):
    • Date
    • Thread