10.8 build fix.

This commit is contained in:
Pietro Gagliardi 2016-05-28 21:50:24 -04:00
parent ae0dcada45
commit c99ad0f0c5
1 changed files with 3 additions and 1 deletions

View File

@ -136,7 +136,9 @@ static uiMultilineEntry *finishMultilineEntry(BOOL hscroll)
[e->tv setUsesFontPanel:NO];
[e->tv setRulerVisible:NO];
// we'll handle font last
[e->tv setAlignment:NSTextAlignmentNatural];
// while setAlignment: has been around since 10.0, the named constant "NSTextAlignmentNatural" seems to have only been introduced in 10.11
#define ourNSTextAlignmentNatural 4
[e->tv setAlignment:ourNSTextAlignmentNatural];
// textColor is set to nil, just keep the dfault
[e->tv setBaseWritingDirection:NSWritingDirectionNatural];
[e->tv setHorizontallyResizable:NO];