• 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: Core Data: Forcing update of NSTableView bound to an NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: Forcing update of NSTableView bound to an NSArrayController


  • Subject: Re: Core Data: Forcing update of NSTableView bound to an NSArrayController
  • From: Bill Coleman <email@hidden>
  • Date: Wed, 9 Aug 2006 23:16:55 -0400


On Aug 8, 2006, at 10:35 PM, Bill Coleman wrote:


Here's the code sequence after the import:

[self endProgressSheet]; // puts away the document-modal sheet

[arrayController rearrangeObjects];
[tableView reloadData];
[tableView scrollRowToVisible: [ [arrayController arrangedObjects] count] - 1];

So, how to I force the table to update at the end?

Figured this out:

[[arrayController managedObjectContext] processPendingChanges];
[arrayController rearrangeObjects];
[tableView scrollRowToVisible: [ [arrayController arrangedObjects] count] - 1];



Bill Coleman, AA4LR, PP-ASEL Mail: email@hidden Quote: "Boot, you transistorized tormentor! Boot!" -- Archibald Asparagus, VeggieTales

_______________________________________________
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


References: 
 >Core Data: Forcing update of NSTableView bound to an NSArrayController (From: Bill Coleman <email@hidden>)

  • Prev by Date: Re: NSURLConnection Without NSHTTPCookieStorage
  • Next by Date: Re: NSURLConnection Without NSHTTPCookieStorage
  • Previous by thread: Core Data: Forcing update of NSTableView bound to an NSArrayController
  • Next by thread: Re: Core Data: Forcing update of NSTableView bound to an NSArrayController
  • Index(es):
    • Date
    • Thread