Re: Verbose warning splurged to the log with Secure Coding (dearchiving) -- can they be serious?
Graham Cox
This sounds so right. But unfortunately doesn’t work for __NSCFConstantString, which returns that, and not NSString. I haven’t yet tried on other classes, but most of the time it’ll be a string...
toggle quoted message
Show quoted text
In respect of this particular issue, I think if you call `classForCoder` rather than `class` on the object of interest, you'll get the portable class name ("NSString") you're looking for. |
|