In my application, at some point, I need to define mutable objects for their proper management. This is more complicated than it sounds.
If I use isKindOfClass:[NSMutableString class] in NSString , all lines seem mutable.
If I ask them if they respond to @selector(appendString:) or not, they all do.
If I really try to mutate them in the @try ... @catch ... @finally , the truth is revealed. However, it is very inefficient and very slow.
What would be the best course of action?
user2158240
source share