Thanks for the encouragement. I added some functionality to aid in model 
generation that hopefully others will find useful.

-- Now you can alternatively define entities as CBLModels by checking the 
Abstract Entity box of the entity. Unchecked boxes with no parents will 
default to CBLNestedModels. This negates the necessity to always create a 
CBLModel/CBLNestedModel entity in your Core Data file and keeps the model 
file cleaner.
-- All CBLModels define their "type" property as the name of the entity if 
you use the "initWithNewDocumentInDatabase" initializer.
-- The tool creates a separate file that is named 
*YourCoreDataModelName*ModelFactory, 
which defines a single class method "registerModelWithCBLModelFactory". You 
can call this method in your AppDelegate once and all the CBLModels in your 
CoreData model will have their types registered with the model factory.

Cheers,
Ragu

On Saturday, April 19, 2014 7:32:48 PM UTC-7, Jens Alfke wrote:
>
> Wow, that is really cool! The Xcode Core Data model editing UI is pretty 
> slick, and it’ll be nice to use that with Couchbase Lite. Thanks for 
> contributing this. 
>
> —Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/8d838968-4e5a-4415-aa2d-5855de5d9295%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to