Trying to use RLMArray of NSString and not sure how it's done. Could not find anything in documentation on it. This is latest Realm 3.x something.
Here is our class:
@interface MyClass : RLMObject<NSCopying>
@property RLMArray<RLMString> *listStrings;
Here is what we are trying to do with it, and it errors with:
"caught "RLMException", "RLMArray does not match expected type 'string?' for property 'MyClass.listStrings'."
MyClass *myClass = [[MyClass alloc] init];
RLMArray<RLMString> *rlmArray = [[RLMArray<RLMString> alloc] initWithObjectClassName:@"NSString"];
myClass.listStrings = rlmArray; <--error here
Can anyone please help with some wonderful advice?
P.S. Per documentation:
RLMArrays can store primitive values in lieu of Realm objects. In order to do so, constrain a RLMArray with one of the following protocols: RLMBool, RLMInt, RLMFloat, RLMDouble, RLMString, RLMData, or RLMDate.