• 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
NSTableView / NSArrayController Drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView / NSArrayController Drawing


  • Subject: NSTableView / NSArrayController Drawing
  • From: "Murray Bookchin" <email@hidden>
  • Date: Thu, 26 Jun 2008 16:43:27 -0700

Hi All,
I'm using an NSArrayController to populate my NSTableView from an array of
dictionaries. The problem is my app spends the majority of its cpu time
re-drawing the NSTableview (~60-70%) as I add rows, even though the view is
"idle" (displaying the top 20 or so rows which aren't changing).

I did find one thread in the archives on this topic... (
http://www.cocoabuilder.com/archive/message/cocoa/2007/4/24/182355) it
sounds like there's a trick to getting the ArrayController to recognize that
the content array is mutable.. Doing that stops the ArrayController from
redrawing the TableView every time something is added to the content array?
The fix is not clear to me from that thread however...

Has anyone else experienced this and/or know how to work around it?
_______________________________________________

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: NSTableView / NSArrayController Drawing
      • From: Ken Thomases <email@hidden>
  • Prev by Date: description and proxy objects
  • Next by Date: noob questions regarding KVC accessors for a mutable array property
  • Previous by thread: Re: description and proxy objects
  • Next by thread: Re: NSTableView / NSArrayController Drawing
  • Index(es):
    • Date
    • Thread