CoreDataKit icon indicating copy to clipboard operation
CoreDataKit copied to clipboard

Sample project?

Open trozware opened this issue 9 years ago • 1 comments

Has anyone got a sample project running this kit? It looks great but I can't get the suggested code to build.

I can get the first chunk (persistentStoreCoordinator) to build, but when I add the CDK.performBlockOnBackgroundContext chunk of code (modified to suit my model) I get a build error:

Cannot invoke 'performBlockOnBackgroundContext' with an argument list of type '((_) -> _, completionHandler: (_, _) -> _)' 

Removing the second parameter from the completion handlers parameters (which seem indicated by the declaration), I get:

Cannot invoke 'value' with no arguments

Sadly, auto-complete is not providing much help here, so I am almost certainly missing something and would be very grateful for a sample project.

trozware avatar Apr 14 '15 07:04 trozware

I don't have a sample project right now. Would be very nice to have so good suggestion!

On your concrete error above, could you show your CDK related code? Maybe I can spot the error for you. :)

mac-cain13 avatar Apr 17 '15 07:04 mac-cain13