Re: Validate NSDocument on Quit

2014-10-05 Thread Jonathan Mitchell
On 5 Oct 2014, at 15:36, Keary Suska wrote: > I am trying to prevent a quit in a document-based app when data in a document > is invalid. AFAICT when auto save is turned on none of the normal document > closing methods are called, and when the app delegate is called, > NSDocumentController sh

Re: Validate NSDocument on Quit

2014-10-05 Thread Kyle Sluder
On Oct 5, 2014, at 7:36 AM, Keary Suska wrote: > > I am trying to prevent a quit in a document-based app when data in a document > is invalid. AFAICT when auto save is turned on none of the normal document > closing methods are called, and when the app delegate is called, > NSDocumentControlle

Validate NSDocument on Quit

2014-10-05 Thread Keary Suska
I am trying to prevent a quit in a document-based app when data in a document is invalid. AFAICT when auto save is turned on none of the normal document closing methods are called, and when the app delegate is called, NSDocumentController shows no existing documents. It might also have to do wit