• 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, refreshObject, multiple threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: core data, refreshObject, multiple threads


  • Subject: Re: core data, refreshObject, multiple threads
  • From: Steve Steinitz <email@hidden>
  • Date: Mon, 8 Dec 2008 10:05:48 +1100

Hi Chris,

On 7/12/08, Chris Idou wrote:

I've even tried [managedObjectContext reset] and querying from the
beginning, but that doesn't seem to work either.

My experience has been that that works (at least in 10.5 with GC activated). I'm no Cocaa memory management expert but I suppose there could be a scenario where you would also have to release and nil all the managed objects.


rebuilding the entire PersistentStoreCoordinator /
ManagedObjectContext stack as a way to get new data

I agree that one can get to that way of thinking after being shunned by refreshObject etc :) However, I suggest fiddling a little more with MOC reset, first -- its not as coy as refreshObject.


Cheers,

Steve

_______________________________________________

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: 
 >Re: core data, refreshObject, multiple threads (From: Chris Idou <email@hidden>)

  • Prev by Date: Re: NSPredicateEditor and date comparisons
  • Next by Date: How to use NSWorkspace?
  • Previous by thread: Re: core data, refreshObject, multiple threads
  • Next by thread: Sizing NSDatePicker to reflect chosen date format in System Prefs
  • Index(es):
    • Date
    • Thread