• 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: NSPrivateQueueConcurrencyType working outside of performBlock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPrivateQueueConcurrencyType working outside of performBlock


  • Subject: Re: NSPrivateQueueConcurrencyType working outside of performBlock
  • From: Dave Fernandes <email@hidden>
  • Date: Tue, 28 Jul 2015 23:59:36 -0400

“Setter methods on queue-based managed object contexts are thread-safe. You can invoke these methods directly on any thread”

https://developer.apple.com/library/mac/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSManagedObjectContext_Class/index.html

> On Jul 28, 2015, at 11:49 PM, Trygve Inda <email@hidden> wrote:
>
>
> So what has to be called though performBlock??
>
> NSManagedObjectContext* privateContext = [[NSManagedObjectContext alloc]
> initWithConcurrencyType:NSPrivateQueueConcurrencyType];
>
>
> // Are these legal to call without using performBlock?
> [privateContext setPersistentStoreCoordinator:myCoordinator];
> [privateContext setUndoManager:nil];
>


_______________________________________________

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: NSPrivateQueueConcurrencyType working outside of performBlock
      • From: Trygve Inda <email@hidden>
References: 
 >Re: NSPrivateQueueConcurrencyType working outside of performBlock (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: NSPrivateQueueConcurrencyType working outside of performBlock
  • Next by Date: Re: iOS 8.4: Converting a URL into a PHAsset
  • Previous by thread: Re: NSPrivateQueueConcurrencyType working outside of performBlock
  • Next by thread: Re: NSPrivateQueueConcurrencyType working outside of performBlock
  • Index(es):
    • Date
    • Thread