diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-06-05 01:19:13 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-06-05 07:44:56 +0300 |
commit | c6ab40a2dd25d94786bda82aed85f086f00f050b (patch) | |
tree | a94b639137f759529d80310c015493e1c88103bc /vcl/osx | |
parent | 4d3628ca769ce07c93e8c4629075eeb7c8dc317e (diff) |
-[NSWindow setRestorable:] is present since 10.7
No need to use objc_msgSend().
Change-Id: I56c824e3206c37be4b60fb7d82b65c9d5e89958b
Diffstat (limited to 'vcl/osx')
-rw-r--r-- | vcl/osx/salframe.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx index 761f7898d6ad..2a60c8d85f81 100644 --- a/vcl/osx/salframe.cxx +++ b/vcl/osx/salframe.cxx @@ -224,10 +224,7 @@ SAL_WNODEPRECATED_DECLARATIONS_POP [mpNSWindow setDelegate: static_cast<id<NSWindowDelegate> >(mpNSWindow)]; - if( [mpNSWindow respondsToSelector: @selector(setRestorable:)]) - { - objc_msgSend(mpNSWindow, @selector(setRestorable:), NO); - } + [mpNSWindow setRestorable:NO]; const NSRect aRect = { NSZeroPoint, NSMakeSize( maGeometry.nWidth, maGeometry.nHeight )}; mnTrackingRectTag = [mpNSView addTrackingRect: aRect owner: mpNSView userData: nil assumeInside: NO]; |