Closed daniel-beard closed 1 month ago
NSCopying class types that also have a mutable subclass variant (for example NSString, NSArray) should always be specified as copy.
NSCopying
NSString
NSArray
copy
This helps avoid situations where the value of a property could change without the setter being invoked (i.e. the object gets mutated).
NSCopying
class types that also have a mutable subclass variant (for exampleNSString
,NSArray
) should always be specified ascopy
.This helps avoid situations where the value of a property could change without the setter being invoked (i.e. the object gets mutated).