• 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
Slow loading bound NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Slow loading bound NSTableView


  • Subject: Slow loading bound NSTableView
  • From: August Trometer <email@hidden>
  • Date: Wed, 11 May 2005 06:58:03 -0500

I have two tables, each bound to an NSArrayController. In the first table is a list of my main objects which are like mailboxes. The second table lists all the objects associated with each "mailbox," all with about 100-200 objects.

I also have one main "summary object" which combines the contents of the other objects into one, so it can get up to 5000 objects or so.

Here is my problem. Clicking on any of the source items works fine. Everything loads as expected. However, when I click on the summary object, the table takes a tremendous about of time (sometimes up to 4 seconds) to load.

Now I've gone in and tried to time each section of code that gets called when an item gets selected. I've done this by simply putting NSLog statements in various places, including tableViewSelectionDidChange:. I've even added these to the arrangeObjects; method on the array controller. Strange thing is, it seems like the delay is _before_ any of these methods get called not during any of them. In fact, I would expect that tableViewSelectionDidChange: as soon as a new row is selected in the main table, but the delay happens before that code is executed.

Is there any good way to track down the bottleneck? Are there any known speedbumps that I may be ignoring?

Thanks!

August


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Slow loading bound NSTableView
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Storing file pathes... what to do if the user move/change them ?
  • Next by Date: Re: Slow loading bound NSTableView
  • Previous by thread: NSTableView, checkbox columns & double clicks
  • Next by thread: Re: Slow loading bound NSTableView
  • Index(es):
    • Date
    • Thread