• 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: Updating NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating NSTableView


  • Subject: Re: Updating NSTableView
  • From: Michael Ash <email@hidden>
  • Date: Wed, 13 May 2009 09:43:13 -0400

On Wed, May 13, 2009 at 9:19 AM, I. Savant <email@hidden> wrote:
> On Wed, May 13, 2009 at 8:15 AM, Sourabh Sahu
> <email@hidden> wrote:
>> Hi Everyone,
>> I want to reflect changes in cell of NSTableView without calling reloadData function, any help would be appreciated.
>
>  That would be difficult, hacky, and wrong. Why do you feel you need
> to do this? What are you trying to accomplish?

Actually it's trivial, correct, and documented. From the docs for
frameOfCellAtColumn:row:

You can use this method to update a single cell more efficiently than
sending the table view a reloadData message.

[aTableView setNeedsDisplayInRect:[aTableView
frameOfCellAtColumn:column row:row]];

Mike
_______________________________________________

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: Updating NSTableView
      • From: "I. Savant" <email@hidden>
References: 
 >Updating NSTableView (From: Sourabh Sahu <email@hidden>)
 >Re: Updating NSTableView (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: [iPhone] Caching images fetched from a URL?
  • Next by Date: Re: Updating NSTableView
  • Previous by thread: Re: Updating NSTableView
  • Next by thread: Re: Updating NSTableView
  • Index(es):
    • Date
    • Thread