-
Notifications
You must be signed in to change notification settings - Fork 6
Files
/
Copy pathNSAttributedStringsMappingModel.csv
47 lines (47 loc) · 3.25 KB
/
NSAttributedStringsMappingModel.csv
1 | iOS | Mac | iOS | Mac | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | MAPPED | const CFStringRef kCTCharacterShapeAttributeName; | NSString *NSCharacterShapeAttributeName; | CFNumber | integer value | |||||||
3 | MAPPED | const CFStringRef kCTFontAttributeName; | NSString *NSFontAttributeName; | CTFont | NSFont | |||||||
4 | MAPPED | const CFStringRef kCTKernAttributeName; | NSString *NSKernAttributeName; | CFNumber | NSNumber | |||||||
5 | MAPPED | const CFStringRef kCTLigatureAttributeName; | NSString *NSLigatureAttributeName; | CFNumber | NSNumber | |||||||
6 | MAPPED | const CFStringRef kCTForegroundColorAttributeName; | NSString *NSForegroundColorAttributeName; | CGColor | NSColor | |||||||
7 | const CFStringRef kCTForegroundColorFromContextAttributeName; | CFBoolean | ||||||||||
8 | MAPPED | const CFStringRef kCTParagraphStyleAttributeName; | NSString *NSParagraphStyleAttributeName; | CTParagraphStyle | NSParagraphStyle | |||||||
9 | MAPPED | const CFStringRef kCTStrokeWidthAttributeName; | NSString *NSStrokeWidthAttributeName; | CFNumber | NSNumber | |||||||
10 | MAPPED | const CFStringRef kCTStrokeColorAttributeName; | NSString *NSStrokeColorAttributeName; | CGColor | NSColor | |||||||
11 | MAPPED | const CFStringRef kCTSuperscriptAttributeName; | NSString *NSSuperscriptAttributeName; | CFNumber | NSNumber | |||||||
12 | MAPPED | const CFStringRef kCTUnderlineColorAttributeName; | NSString *NSUnderlineColorAttributeName; | CGColor | NSColor | |||||||
13 | MAPPED | const CFStringRef kCTUnderlineStyleAttributeName; | NSString *NSUnderlineStyleAttributeName; | bitmask | bitmask | |||||||
14 | MAPPED | const CFStringRef kCTVerticalFormsAttributeName; | NSString *NSVerticalGlyphFormAttributeName; | CGBoolean | NSNumber (1 = true, 0 = false) | |||||||
15 | MAPPED | const CFStringRef kCTGlyphInfoAttributeName; | NSString *NSGlyphInfoAttributeName; | CTGlyphInfo | NSGlyphInfo | |||||||
16 | const CFStringRef kCTRunDelegateAttributeName | CTRunDelegate | ||||||||||
17 | NSString *NSBackgroundColorAttributeName; | NSColor | ||||||||||
18 | NSString *NSAttachmentAttributeName; | NSTextAttachment | ||||||||||
19 | MAPPED | NSString *NSBaselineOffsetAttributeName; | kCTFontBaselineAdjustAttribute in CTFontDescriptor | NSNumber | ||||||||
20 | NSString *NSLinkAttributeName; | doesn’t exist, must implement ourselves by drawing and checking location | NSURL or NSString | |||||||||
21 | NSString *NSStrikethroughStyleAttributeName; | doesn’t exist, must implement ourselves by drawing | NSNumber | |||||||||
22 | NSString *NSStrikethroughColorAttributeName; | doesn’t exist, must implement ourselves by drawing | NScolor | |||||||||
23 | NSString *NSShadowAttributeName; | doesn’t exist, must implement ourselves by drawing | NSShadow | |||||||||
24 | MAPPED | NSString *NSObliquenessAttributeName; | kCTFontSlantTrait in CTFontDescriptor | NSNumber (skew to apply) | ||||||||
25 | MAPPED | NSString *NSExpansionAttributeName; | kCTFontWidthTrait in CTFontDescriptor | NSNumber (log of expansion factor to apply to glphys) | ||||||||
26 | NSString *NSCursorAttributeName; | really specific to the Mac | NSCursor | |||||||||
27 | NSString *NSToolTipAttributeName; | really specific to the Mac | NSString | |||||||||
28 | NSString *NSMarkedClauseSegmentAttributeName; | NSnumber (index marking clause segments) | ||||||||||
29 | NSString *NSWritingDirectionAttributeName; | NSArray of numbers (for overriding bidi algorithm) | ||||||||||
30 | ||||||||||||
31 | ||||||||||||
32 | ||||||||||||
33 | ||||||||||||
34 | ||||||||||||
35 | ||||||||||||
36 | ||||||||||||
37 | ||||||||||||
38 | ||||||||||||
39 | ||||||||||||
40 | ||||||||||||
41 | ||||||||||||
42 | ||||||||||||
43 | ||||||||||||
44 | ||||||||||||
45 | ||||||||||||
46 | ||||||||||||
47 |