Re: Core Data: Forcing update of NSTableView bound to an NSArrayController
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