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
look like:
[(id)win setTabbingMode: NSWindowTabbingModeDisallowed];
By the way, while digging around I came across a lot of stuff saying
`@selector(setTabbingMode)` should give a warning if `setTabbingMode`
doesn’t exist. Are you seeing one?