Use literal ‘⇥’ instead of ‘\u21E5’

This commit is contained in:
Allan Odgaard
2012-09-27 17:38:49 +02:00
parent e1fc3993f0
commit ea85d37dff
2 changed files with 2 additions and 2 deletions

View File

@@ -168,7 +168,7 @@
NSFont* font = self.menu.font ?: [NSFont menuFontOfSize:0];
[attributedTitle appendTableCellWithString:self.title table:table textAlignment:NSLeftTextAlignment verticalAlignment:NSTextBlockMiddleAlignment font:font row:0 column:0];
[attributedTitle appendTableCellWithString:[NSString stringWithCxxString:(" "+aTabTrigger+"\u21E5")] table:table textAlignment:NSRightTextAlignment
[attributedTitle appendTableCellWithString:[NSString stringWithCxxString:(" "+aTabTrigger+"")] table:table textAlignment:NSRightTextAlignment
verticalAlignment:font.pointSize >= 13 ? NSTextBlockBottomAlignment : NSTextBlockMiddleAlignment
font:[NSFont menuBarFontOfSize:floor(font.pointSize * 0.85)] row:0 column:1];
NSString* plainTitle = self.title;

View File

@@ -44,7 +44,7 @@
nil];
HighlightRangesWithAttribute(attrStr, FLMatchingTextAttributeName, highlightAttributes);
[attrStr appendAttributedString:[[[NSAttributedString alloc] initWithString:@"\u21E5" attributes:nil] autorelease]];
[attrStr appendAttributedString:[[[NSAttributedString alloc] initWithString:@"" attributes:nil] autorelease]];
CFTypeRef str = (CFAttributedStringRef)attrStr;
HIThemeTextInfo textInfo = { kHIThemeTextInfoVersionZero, kThemeStateActive, kThemeSmallSystemFont, kHIThemeTextHorizontalFlushRight, kHIThemeTextVerticalFlushCenter, 0, kHIThemeTextTruncationNone, 1, 0 };