• 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: Dave Hayden <email@hidden>
  • Date: Tue, 26 Feb 2008 11:51:20 -0800

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


  • Follow-Ups:
    • Re: Force arrayController to remove immediately?
      • From: Justin Hawkwood <email@hidden>
References: 
 >Force arrayController to remove immediately? (From: Justin Hawkwood <email@hidden>)

  • Prev by Date: Image Kit Programming Guide
  • Next by Date: Re: Event Logging
  • Previous by thread: Re: Force arrayController to remove immediately?
  • Next by thread: Re: Force arrayController to remove immediately?
  • Index(es):
    • Date
    • Thread