echoz / MNcoder

NSKeyedArchiver/Unarchiver composition that outputs portable serialized plists. Specifically written for Mindnode. To as losslessly as possible bring NSAttributedStrings from iOS to the Mac and vice versa.
23 stars 6 forks source link

hasUIKitAdditions is reversed. #4

Open flemingm opened 11 years ago

flemingm commented 11 years ago

in MNAttributedString.m

Updated.

if TARGET_OS_IPHONE

+(BOOL)hasUIKitAdditions { // NSAttributeString is enhanced in ios 6.0 return ([[[UIDevice currentDevice] systemVersion] compare:@"6.0"] != NSOrderedAscending); }

endif

Also on ios 5.1 I need to define some def for NS

NSLog(@"NSKernAttributeName '%@'", NSKernAttributeName); NSLog(@"NSLigatureAttributeName '%@'", NSLigatureAttributeName); NSLog(@"NSStrokeWidthAttributeName '%@'", NSStrokeWidthAttributeName); NSLog(@"NSUnderlineStyleAttributeName '%@'", NSUnderlineStyleAttributeName); NSLog(@"NSForegroundColorAttributeName '%@'", NSForegroundColorAttributeName); NSLog(@"NSStrokeColorAttributeName '%@'", NSStrokeColorAttributeName); NSLog(@"NSVerticalGlyphFormAttributeName '%@'", NSVerticalGlyphFormAttributeName); NSLog(@"NSString NSFontAttributeName = @\"%@\"", NSFontAttributeName); NSLog(@"NSString NSParagraphStyleAttributeName = @\"%@\"", NSParagraphStyleAttributeName);

I will make this a pull request at same time as issue #3