• 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
tableView not updating immediately
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tableView not updating immediately


  • Subject: tableView not updating immediately
  • From: Kurt Marek <email@hidden>
  • Date: Sun, 9 Nov 2003 19:07:09 -0800

I have two tableViews. The first one contains a list of queries (queryTableView) to the web. The second one contains a list of the results for each query (resultsTableView). queryTableView is bound to an NSArrayController called queryArrayController and the resultsTableView is bound to an NSArrayController called resultsArrayController. queryArrayController controls query objects. An instance of query has an array called resultsArray and one of the attributes of queryArrayController is resultsArray. The content of resultsArrayController is queryArrayController.selection.resultsArray. resultsArray contains multiple instances of the object result.

When I perform a new query, it generates multiple new instances of result and puts them into resultsArray. This is done within an instance method of the new query object using [resultsArray addObject:newResult].

The problem is that the new result doesn't show up in resultsTableView immediately. It requires me clicking on another query record and then clicking back to the newly generated one in queryTableView and then all of the new results show up in the resultsTableView.

I hope that is all clear. I think I am just not quite key-value coding compliant somewhere, perhaps in my resultsArray addObject method. Can someone help me out?

Kurt
_______________________________________________
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.

  • Prev by Date: Re: NSView subclass bindings? NSTextView?
  • Next by Date: NSTextField nib error
  • Previous by thread: Re: drag and drop in same app
  • Next by thread: NSTextField nib error
  • Index(es):
    • Date
    • Thread