Add attributed string method.

This commit is contained in:
Gregory John Casamento 2019-09-17 17:41:48 -04:00
parent de062d44e9
commit 788adc3ff9

View file

@ -92,8 +92,9 @@
- (NSAttributedString *) annotatedStringFromPersonNameComponents: (NSPersonNameComponents *)components
{
return AUTORELEASE([[NSAttributedString alloc] initWithString:
[self stringFromPersonNameComponents: components]]);
NSAttributedString *result = AUTORELEASE([[NSAttributedString alloc] initWithString:
[self stringFromPersonNameComponents: components]]);
return result;
}
- (NSPersonNameComponents *) personNameComponentsFromString: (NSString *)string