Does -localizedDescription of NSError return the actual localized string, or does it return a key fo

Posted by mystify on Stack Overflow See other posts from Stack Overflow or by mystify
Published on 2010-06-08T07:48:14Z Indexed on 2010/06/08 7:52 UTC
Read the original article Hit count: 210

Filed under:

Must I do something like this?

NSString *errorDescription = [error localizedDescription];
NSString *errorInfoStr = NSLocalizedString(errorDescription, nil);

Or do I use NSLocalizedString already when populating the userInfo dictionary with the NSLocalizedDescriptionKey key and value? So the value for that is not actually a key for NSLocalizedString, but it is the actual localized string ready to show up on screen?

© Stack Overflow or respective owner

Related posts about iphone