NSAttributedString: define NSTextAlternatives attribute

Define an (unimplemented) NSAttributedString attribute for an
NSTextAlternatives object.
This commit is contained in:
Daniel Ferreira 2017-07-23 02:39:35 +10:00 committed by Ivan Vučica
parent 758d524547
commit b29d85f451
2 changed files with 6 additions and 0 deletions

View file

@ -78,6 +78,10 @@ APPKIT_EXPORT NSString *NSToolTipAttributeName;
APPKIT_EXPORT NSString *NSUnderlineColorAttributeName; APPKIT_EXPORT NSString *NSUnderlineColorAttributeName;
APPKIT_EXPORT NSString *NSUnderlineStyleAttributeName; APPKIT_EXPORT NSString *NSUnderlineStyleAttributeName;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_8, GS_API_LATEST)
APPKIT_EXPORT NSString *NSTextAlternativesAttributeName;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_2, GS_API_LATEST) #if OS_API_VERSION(MAC_OS_X_VERSION_10_2, GS_API_LATEST)
APPKIT_EXPORT NSString *NSGlyphInfoAttributeName; APPKIT_EXPORT NSString *NSGlyphInfoAttributeName;
#endif #endif

View file

@ -566,6 +566,8 @@ NSString *NSToolTipAttributeName = @"NSToolTip";
NSString *NSUnderlineColorAttributeName = @"NSUnderlineColor"; NSString *NSUnderlineColorAttributeName = @"NSUnderlineColor";
NSString *NSUnderlineStyleAttributeName = @"NSUnderline"; NSString *NSUnderlineStyleAttributeName = @"NSUnderline";
NSString *NSTextAlternativesAttributeName = @"NSTextAlternatives";
NSString *NSCharacterShapeAttributeName = @"NSCharacterShape"; NSString *NSCharacterShapeAttributeName = @"NSCharacterShape";
NSString *NSGlyphInfoAttributeName = @"NSGlyphInfo"; NSString *NSGlyphInfoAttributeName = @"NSGlyphInfo";