Apple always seeks to change everything in its designs. Developers consistently alter the workings of software that is 'rinse and repeat,' present across all Apple computer models.
If you're using Snow Leopard, when you make changes to a document and close it, Mac will show a dialog asking if you want to save the changes: 'Are you sure you want to do that?' You can choose to save the changes or bypass the dialog. This is how you'll know that changes to the document have been saved.
Mountain Lion comes with an integrated option that enables you to configure a dialog prompting whether to save changes on documents. Here's how to activate this option. If you prefer not to display the dialog, you can also disable it.
Configure your Mac to prompt whether to save changes on documents
Open System Preferences from the Dock, Applications folder, or the Apple menu. Click on the General icon in the top-left corner of System Preferences to open the General preferences window.
In the third section from the top, you'll find the option “Ask to keep changes when closing documents”. Check this option to make Mac display a dialog asking whether to save changes on documents.
To prevent Mac from displaying a dialog asking to save changes on documents, simply uncheck the option “Ask to keep changes when closing documents,” and Mac will automatically save all changes on your documents.
Now, when closing a document with unsaved changes, you'll receive a prompt on the screen asking whether you want to save changes on the document or not.
In addition to configuring Mac to display a dialog about saving changes on documents, users are also interested in hiding/showing files on Mac. To learn how to hide/show files on MacOS Sierra, follow Mytour's article.