I think I'm correct in saying that to get a non-concrete Attributable text string, I need to use the method, so, I've tried, with no success.
No. In this context, concrete means nothing to you; it's just a subclass of attributed string. It's nothing to do with mutability, if that's what you're thinking.
set x to current application's NSAttributedString's alloc()'s initWithString:"blah"
current application's NSLog("%@", x's |class|())
--> NSConcreteAttributedString
x's isKindOfClass:(current application's NSAttributedString)
I've tried (amongst others) the five permutations below, each with an 'unrecognised selector' error trap error. Without the error trap, the log reports the same.
I found this
CFAttributedStringCreateMutableCopy(NULL, 0, attr_text));
on the net, but it does not seem to relate to the ASObjC method that's required.
CFAttributedStringCreateMutableCopy() is a C function, not an Objective-C method, and it belongs to CoreFoundation.framework -- thus the CF. As such, you basically can't use it in ASObjC. See my book, page 2.
Two questions, please.
1. Am I on the right track to create a non-concrete Attributable string, and if so…
You're on the wrong track worrying about concrete anything.
2. What's the correct terminology please?