> On Sep 15, 2014, at 1:43 PM, Julian Paas <[email protected]> wrote:
>
> @NSManaged var gamePlayerStats: [PlayerStats]
I haven't gotten into Swift programming yet — is the "@NSManaged" declaration
equivalent to "@dynamic" in Objective-C? (It needs to be, otherwise CBLModel
won't recognize gamePlayerStats as a database-backed property.)
> class func gamePlayerStatsItemClass() -> PlayerStats.Type {
> return PlayerStats.self
> }
That looks OK as far as I know, although I don't know exactly what
PlayerStats.Type is. The return type needs to be a Swift equivalent of 'Class'.
It's possible that the compiler decided that PlayerStats.Type isn't compatible
with anything in Objective-C and decided not to make that method visible from
Obj-C, which would explain why it didn't get called…
—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/CF54CD93-F827-4BFC-BDD2-657B42EAFDFC%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.