• 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
Is it OK to use the default initializer of NSPersistentStoreDescription?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Sometimes all my menus are disabled
  • Next by Date: Re: Sometimes all my menus are disabled
  • Previous by thread: Re: Sometimes all my menus are disabled
  • Next by thread: Does the NSPersistentContainer name mean anything?
  • Index(es):
    • Date
    • Thread