Created
May 11, 2012 13:11
-
-
Save echoz/2659508 to your computer and use it in GitHub Desktop.
MNAttributed String check of conforms to NSCoding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (([MNAttributedString lossless]) && ([[attrs objectForKey:key] conformsToProtocol:@protocol(NSCoding)])) { | |
[attributes insertObject:[self _dictionaryForAttributes:[NSDictionary dictionaryWithObject:[attrs objectForKey:key] forKey:key] range:range] atIndex:([attributes count]-1)]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment