/Typhoon-CoreData-RAC-Example

Typhoon Core Data + RAC Sample

Primary LanguageObjective-CApache License 2.0Apache-2.0

#Typhoon Core Data + RAC Sample

Here's a sample that was kindly posted by Ryoichi Izumita showing how to set up an assembly that uses CoreData and RAC.

#Assemblies

CDRApplicationAssembly

The top-level assembly is CDRApplicationAssembly. In this assembly:

  • The AppDelegate is injected at startup with some Core Data components. This allows the app delegate to save the context when the application is terminated.
  • The's a CDRViewController, which is declared on the main story board. Because we've boot-strapped Typhoon from the app's plist file all storyboards will be an instance of TyphoonStoryboard. These work just like regular storyboards with the added benefit that dependencies are injected according to the rules outline in our assembly.

CDRCoreDataComponents

The main assembly refers to a helper assembly - CDRCoreDataComponents, which is responsible for setting up core data.

LICENSE

Apache License, Version 2.0, January 2004, http://www.apache.org/licenses/

© 2012 - 2014 Jasper Blues and contributors.