• 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: Two threads, two managed object contexts. Do I need locking?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two threads, two managed object contexts. Do I need locking?


  • Subject: Re: Two threads, two managed object contexts. Do I need locking?
  • From: Michael Greiner <email@hidden>
  • Date: Wed, 01 Jul 2009 01:16:51 +0800

Yes, that's the only time I access the persistent store coordinator.

And I'll definitely check out the debug libraries. Thanks for your response Adam!

Regards,
Mike

 Thank you Adam. I appreciate the response. I'll definitely c
On Tuesday, June 30, 2009, at 04:32AM, "Adam Swift" <email@hidden> wrote:
>
>On Jun 29, 2009, at 1:18 PM, Adam Swift wrote:
>
>> No, if the only time/place you access the persistent store
>> coordinator is when you create it and then pass it into
>> [[NSManagedObjectContext alloc]
>> initWithPersistentStoreCoordinator:psc], then you should be fine
>> without any additional locking.
>
>Sigh - coffee failure - that should be [moc
>setPersistentStoreCoordinator:psc];
_______________________________________________

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: 
 >Two threads, two managed object contexts. Do I need locking? (From: Michael Greiner <email@hidden>)
 >Re: Two threads, two managed object contexts. Do I need locking? (From: Adam Swift <email@hidden>)
 >Re: Two threads, two managed object contexts. Do I need locking? (From: Adam Swift <email@hidden>)

  • Prev by Date: Re: [Newbie] Displaying an NSImage inside an NSTextField?
  • Next by Date: GC bug in NSFontManager?
  • Previous by thread: Re: Two threads, two managed object contexts. Do I need locking?
  • Next by thread: NSApp problem outside of bundle
  • Index(es):
    • Date
    • Thread