• NachoSoto's avatar
    Objective-C generated classes copy collection types in constructor · f33951e6
    NachoSoto authored
    This is a small follow up to #123. The `ObjcGenerator` was already correctly set up to automatically copy `NSString` instances to ensure that if an `NSMutableString` instance was passed instead, an immutable copy was created.
    With this change the same is true for `NSSet`, `NSArray`, and `NSDictionary` properties.
    
    Note that thanks to #123 this should not have a performance impact (neither memory or CPU), since at most only one copy will be made.
    f33951e6
DBNestedCollection.mm 473 Bytes