|Subject:||Re: Mac OS Sierra tab feature breaks C-x 5 2|
|Date:||Wed, 12 Jul 2017 23:20:57 +0200|
Yeah, I’m not sure about this either. It strikes me as a bit suspect,
but I don’t know that the alternatives are going to be any better.
We could disable the warning:
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-method-access"
if ([win respondsToSelector: @selector(setTabbingMode:)])
[win setTabbingMode: NSWindowTabbingModeDisallowed]
#pragma clang diagnostic pop
which is, I think, the right thing to do, but that’s quite messy
looking, and I suspect we’ll have to do the same for the gcc warning.
I don’t know if we’d then have to do some #ifdef stuff to separate the
clang and gcc stuff. This has the potential to get REALLY messy.
Another possibility is to cast `win` to `id`, which I’d guess would
[(id)win setTabbingMode: NSWindowTabbingModeDisallowed]
By the way, while digging around I came across a lot of stuff saying
address@hidden(setTabbingMode)` should give a warning if `setTabbingMode`
doesn’t exist. Are you seeing one?
|[Prev in Thread]||Current Thread||[Next in Thread]|