... and you press Preview in Spectrogram preferences.
And complete null checks on GetActiveProject calls in src/prefs.
And in fact, don't even show the useless Preview button when there is no
project.
... because that will be needed for elimination of some GetActiveProject()
calls. Because some overrides need to find the focused track, but that may
mutate the project by setting the focused track when it wasn't yet defined.
This removes dependencies on older SDKs, fixes a signing
issue, reinstates 10.7 as the minimum supported MacOS version,
and cleans out some (legacy) library handling.
It must be signed with a "Developer ID Application" certificate
and not the "Developer ID Installer" certificate.
And make sure to sign the app before copying it to the temporary
DMG folder.
If built using the 10.15+ SDK, the UI will take on some
of the new system visuals (like colors). But, Audacity
isn't ready for that yet, so this tells the system it
needs the old look.
... Don't do it at the low level of construction of a command object. Do it
only at the highest possible level, where an external scripting module or
Nyquist calls into the command framework. Pass the project pointer down where
it is needed.
... When it's off (default), Spectrum and Waveform buttons behave as before,
and dragging of the sub-view separator is disabled.
When it transitions to off, and the view is split, then the top sub-view takes
up the whole view.
When it transitions on, nothing visible happens.
When it is on, and you choose Spectrum or Waveform, then the corrsponding
sub-view toggles visibility.
When a sub-view is turned on by the menu item, it appears lowest.
... We need to un-correct the smart quote characters back to dumb quotes
before passing the input to the Lisp interpreter.
The smart quote correction is a consequence of the move to the MacOS 10.9 SDK.
Stopping the correction at the source would require objective-C hacks in a
custom build of wxWidgets, and just not worth the effort.
This fix only corrects the text input at one wxTextCtrl. Should we reexamine
other uses of that class?
Since it is only issued with clang 11(+), attempting to
disable it for via Xcode options doesn't work on older
versions of Xcode/clang.
So, make it clang version specific via configmac.h.