With my cross platform projects, I leverage Ohanaware App Kit features in the Mac versions.
Thus, when I get a new release of OAK, I spend some time inserting “#if TargetMacOS or TargetIOS” into its methods, until cross-platform debug runs stop complaining. Then I export my tweaked OAK to put into the other projects. This takes a little time, but isn’t too overbearing.
I’m wondering whether “#if TargetMachO” would do just as well. Or would this just be an equivalent to TargetMacOS? From the documentation, I’m still not sure.
An interesting discussion between two gentlemen I respect very much. I’ve already moved the “solved” button once, and may now just remove it.
As I understand Christian (and I vaguely remember), back in the day, TargetMachO was there to differentiate Mac OS X code from anything expected to also work in OS 9. One could infer that today it would work as I asked. Then again, Norman has gotten his hands dirty under the hood with Xojo.