Add comments to prepare for refactoring the TexturingView.
Fix a bug when terminating the app from the dock context menu on OS X.