Is it OK to use the default initializer of NSPersistentStoreDescription?
Is it OK to use the default initializer of NSPersistentStoreDescription?
- Subject: Is it OK to use the default initializer of NSPersistentStoreDescription?
- From: Daryle Walker <email@hidden>
- Date: Sun, 12 Feb 2017 18:25:14 -0500
When I was typing in a test object of type NSPersistentStoreDescription (on Xcode 8 with Swift 3), the auto-complete gave me two initializers. Besides the documented one that takes a URL, there’s one that takes no arguments. Its own notes say it’s for subclasses. I, however, am describing an in-memory store, which doesn’t need a URL (as far as I know).
Is this an official way to start declaring a NSPersistentStoreDescription (for in-memory stores)? Or should I put in a junk URL in the publicized initializer then set the field to NIL?
—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
_______________________________________________
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