Hi, I've got an NSTokenField in my app and I'm trying to allow the user to drag and drop tokens. Because of that, I need to archive the represented objects (my CBLModel subclass) and do the things that need to be done to make that work, such as implement `encodeWithCoder` and `initWithCoder`. But since CBLModel doesn't implement NSCoding nor does it extend eventually from NSResponder, I'm having a hard time making this work.
In my previous model I defined my base class like this: @interface BaseEntity : NSResponder <NSCoding> And that seemed to allow NSKeyValueCoding to function properly for my drag and drop needs. I'm wondering if there's an alternative technique I should be using to support drag and drop? This is a Mac OS X app btw. When I try to implement encodeWithCoder and initWithCoder, I am unable to call super and I also get the following error from CBL: **** Assertion failure in -[TFField setValue:ofProperty:], /Projects/iPhone/couchbase-lite-ios/Source/API/CBLModel.m:481* Invalid parameter not satisfying: _document I tried encoding 'document', but it's a read-only property: self.document = [aDecoder decodeObjectForKey:@"document"]; Perhaps I'm going about this all wrong. Thanks, Brendan -- 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/3166228d-ab78-47a2-9ffb-9bbed53ea49d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
