diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2018-06-07 13:56:28 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2018-06-07 13:56:28 +1000 |
commit | 9002d79da5518e33227a1e91968d29a0ec3425fe (patch) | |
tree | 95bd912fdf35993e7a378f4f7d81277e4e4dcd94 /cocoa/InfoBar.mm | |
parent | b780f4975a8d6fc26a5e2902a1d7d9a18151e5be (diff) | |
download | scintilla-mirror-9002d79da5518e33227a1e91968d29a0ec3425fe.tar.gz |
Update Cocoa enumerations to current names instead of deprecated names.
Diffstat (limited to 'cocoa/InfoBar.mm')
-rw-r--r-- | cocoa/InfoBar.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm index 9ac3c3a98..07949c3ee 100644 --- a/cocoa/InfoBar.mm +++ b/cocoa/InfoBar.mm @@ -192,7 +192,7 @@ static float BarFontSize = 10.0; NSTextFieldCell *cell = mCaretPositionLabel.cell; cell.placeholderString = @"0:0"; - cell.alignment = NSCenterTextAlignment; + cell.alignment = NSTextAlignmentCenter; [self addSubview: mCaretPositionLabel]; @@ -228,7 +228,7 @@ static float BarFontSize = 10.0; if (mBackground.size.width != 0) { NSPoint target = {rect.origin.x, 0}; while (target.x < rect.origin.x + rect.size.width) { - [mBackground drawAtPoint: target fromRect: NSZeroRect operation: NSCompositeCopy fraction: 1]; + [mBackground drawAtPoint: target fromRect: NSZeroRect operation: NSCompositingOperationCopy fraction: 1]; target.x += mBackground.size.width; } } |