|
From: | Anders Lindgren |
Subject: | Re: Mac OS Sierra tab feature breaks C-x 5 2 |
Date: | Sun, 16 Jul 2017 20:43:25 +0200 |
On Wed, Jul 12, 2017 at 11:20:57PM +0200, Anders Lindgren wrote:
> The end result would look like:
>
> NS_SILENCE_MISSING_METHOD_WARNING_BEGIN I like this option, but after a lot of messing about I’m pretty sure
> if ([win respondsToSelector: @selector(setTabbingMode:)])
> [win setTabbingMode: NSWindowTabbingModeDisallowed];
> NS_SILENCE_MISSING_METHOD_WARNING_END
that gcc doesn’t let you silence this warning.
So, unless we don’t care about gcc warnings for the NS build, we could
try using performSelector:
[win performSelector: @selector(setTabbingMode:)
withObject: (id)NSWindowTabbingModeDisallowed] ;
Which only supports one parameter, so works here but not necessarily
anywhere else we might want to try this.
Or back to the first suggestion and fake the methods when they’re not
there. But that doesn’t help get rid of the need for multiple
binaries.
[Prev in Thread] | Current Thread | [Next in Thread] |