This displays a dialog that warns the user of a unsaved file.
The string, action, indicates what action is about to take place. For example, if the application is about to close a file, a good action is "Close". The result symbol indicates the user's choice.