• 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
Core Data: thread safety of NSPersistentStore +metadataForPersistentStoreWithURL:... (and +set...)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data: thread safety of NSPersistentStore +metadataForPersistentStoreWithURL:... (and +set...)?


  • Subject: Core Data: thread safety of NSPersistentStore +metadataForPersistentStoreWithURL:... (and +set...)?
  • From: Jim Correia <email@hidden>
  • Date: Fri, 24 Apr 2009 21:17:38 -0400

I don't see that the documentation specifically calls out

@interface NSPersistentStore
+ (NSDictionary *)metadataForPersistentStoreWithURL:(NSURL *)url error: (NSError **)error;
+ (BOOL)setMetadata:(NSDictionary *)metadata forPersistentStoreWithURL: (NSURL*)url error:(NSError **)error;
@end


as being thread safe. (And in fact, these are abstract and need to be implemented by the concrete stores.)

(Outside of the obvious potential race condition) Is it intended that these methods are thread safe for Apple-supplied persistent stores (i.e. concurrently and/or non-main-thread callable)?

Jim

_______________________________________________

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


  • Prev by Date: Re: Core Data and the Application Delegate
  • Next by Date: passing complex objects between threads
  • Previous by thread: Re: Fill box with repeating text
  • Next by thread: passing complex objects between threads
  • Index(es):
    • Date
    • Thread