Hi,
richard wrote:
I don't know what OSX does, and having methods of a mutable class
(other than -copy...) return immutable instances is
unusual/unintuitive, but from a performance point of view (because
character sets can consume a lot of memory) it makes complete sense
for these methods to return shared/singleton instances of immutable
character sets.
out of curiosity I checked what apple does on both 10.4 and 10.15
In both cases the result is a NSCFCharacterSet
Interesting is that during Autocompletion, XCode of 10.4 says it will
return NSCharacterSet* while 10.15 lies and says it will be
NSMutableCharacterSet* !
Riccardo