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

Re: TableView refresh


  • Subject: Re: TableView refresh
  • From: Glen Simmons <email@hidden>
  • Date: Wed, 6 Feb 2002 09:02:02 -0600

As others have pointed out, it's usually not necessary to optimize this,
but here ya go:

Use NSTableView's frameOfCellAtColumn:row: to get the rect for that
cell, then call setNeedsDisplayInRect: passing that rect. This will
cause the table to reload that particular cell.

HTH,
Glen

On Wednesday, February 6, 2002, at 02:09 AM, Dustin Mierau wrote:

> I need to be able to refresh the data for a single cell in a table, is
> this possible? Also, is it possible to refresh a table column? I only
> see the method reloadData, but that seems like quite a price to pay
> just to reload a single cell.
>
> Thanks,
> -dustin
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
>
>
Adults are obsolete children.
-Dr. Seuss, humorist, illustrator, and author (1904-1991)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: TableView refresh
      • From: "Erik M. Buck" <email@hidden>
References: 
 >TableView refresh (From: Dustin Mierau <email@hidden>)

  • Prev by Date: " in a string (newbie)
  • Next by Date: Re: " in a string (newbie)
  • Previous by thread: Re: TableView refresh
  • Next by thread: Re: TableView refresh
  • Index(es):
    • Date
    • Thread