summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-06-05 01:19:13 +0300
committerAndras Timar <andras.timar@collabora.com>2019-11-19 16:09:26 +0100
commit053212cc3b09d141f06220a9175dbb376a614d22 (patch)
treed4da2244e28f33fbd24b4dcbef367439540a08e5 /vcl
parent212b2bfde895c2bdd9d7e365832bfce49d1d3168 (diff)
-[NSWindow setRestorable:] is present since 10.7
No need to use objc_msgSend(). Change-Id: I56c824e3206c37be4b60fb7d82b65c9d5e89958b
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/salframe.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index 797974727b1e..21eb05da7d76 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -219,10 +219,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];