On Mar 17, 2014, at 4:17 PM, Scott Ahten <[email protected]> wrote:

> I'm trying to define... 
> @property (nonatomic, assign) NSArray *objectsThatImplementMyProtocol;
> From what I understand, we implement the class method: + (Class) 
> itemClassForArrayProperty: (NSString*)property to define the type of objects 
> in the array. However, I'm not sure how this would work in the above case, as 
> the method returns an Objective-C Class type rather than a protocol. 

Hm, good point. You can look at the implementation in CBLModel to see what it's 
doing; IIRC, the Class returned from itemClassForArrayProperty: is only used if 
the CBLModelFactory doesn't know what class to use for that particular 
document. So as long as you've registered the document 'type' property (or 
whatever) with the factory, it should be OK.

--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/9D32B62E-A71A-4E79-B2C4-379DC85F9A75%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to