Closed PGLongo closed 10 years ago
nice! The deleteAll() and deleteAll(context:) etc can be reduced to a single method that will handle both situations. Thanks for contributing already.
could it be improved further by possibly by doing the following?
context: NSManagedObjectContext! = SuperCoreDataStack.defaultStack.managedObjectContext!
becomes
(at the top somewhere)
var initializedContext = SuperCoreDataStack.defaultStack.managedObjectContext!
context: NSManagedObjectContext! = initializedContext
i.e. extract the optional value into a variable (the reason I ask is because i'm currently rewriting the SuperCoreDataStack class to be decent rather than the standard boilerplate and it'll support the new architecture.
It depends on how you rewrite SuperCoreDataStack.
@michaelarmstrong should I do something?
Hi!
I have removed all:
using swift optional values, so functions like
Became