• 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: Force arrayController to remove immediately?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Force arrayController to remove immediately?


  • Subject: Re: Force arrayController to remove immediately?
  • From: Justin Hawkwood <email@hidden>
  • Date: Tue, 26 Feb 2008 14:21:33 -0800

Thanks, but I used Ben's suggestion of The UndoManager's groups to solve this issue.

On Feb 26, 2008, at 11:51 AM, Dave Hayden wrote:

On Feb 16, 2008, at 12:31 PM, Justin Hawkwood wrote:

I have an array controller bound in the NIB to a Core Data Entity, and a function to remove the selected item (from tableview) through that array controller. The problem is that I want to rescan the array controller to set some other variables based on the remaining items in the array, but since the "remove" function is delayed, the item for removal is still in the array until the next run loop.

Just noticed this post, 10 days later..

If you're still having trouble with this, have you tried - [NSManagedObjectContext processPendingChanges]? It's been a while since I messed around with CoreData (and I'm not feeling too coherent this morning to boot) but I remember that being the key to problems of this sort.

Hope this helps,
-Dave


_______________________________________________

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


References: 
 >Force arrayController to remove immediately? (From: Justin Hawkwood <email@hidden>)
 >Re: Force arrayController to remove immediately? (From: Dave Hayden <email@hidden>)

  • Prev by Date: Re: Observing with GC
  • Next by Date: Re: Observing with GC
  • Previous by thread: Re: Force arrayController to remove immediately?
  • Next by thread: Re: Cocoa-dev Digest, Vol 5, Issue 251
  • Index(es):
    • Date
    • Thread