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/PlatCocoa.mm | |
parent | b780f4975a8d6fc26a5e2902a1d7d9a18151e5be (diff) | |
download | scintilla-mirror-9002d79da5518e33227a1e91968d29a0ec3425fe.tar.gz |
Update Cocoa enumerations to current names instead of deprecated names.
Diffstat (limited to 'cocoa/PlatCocoa.mm')
-rw-r--r-- | cocoa/PlatCocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index 66d9aad4e..4789f7528 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -1702,7 +1702,7 @@ void ListBoxImpl::Create(Window & /*parent*/, int /*ctrlID*/, Scintilla::Point p NSRect lbRect = NSMakeRect(pt.x, pt.y, 120, lineHeight * desiredVisibleRows); NSWindow *winLB = [[NSWindow alloc] initWithContentRect: lbRect - styleMask: NSBorderlessWindowMask + styleMask: NSWindowStyleMaskBorderless backing: NSBackingStoreBuffered defer: NO]; [winLB setLevel: NSFloatingWindowLevel]; @@ -1780,7 +1780,7 @@ PRectangle ListBoxImpl::GetDesiredRect() { if (Length() > rows) { [scroller setHasVerticalScroller: YES]; - rcDesired.right += [NSScroller scrollerWidthForControlSize: NSRegularControlSize + rcDesired.right += [NSScroller scrollerWidthForControlSize: NSControlSizeRegular scrollerStyle: NSScrollerStyleLegacy]; } else { [scroller setHasVerticalScroller: NO]; |