Re: NSDocument architecture question
Re: NSDocument architecture question
- Subject: Re: NSDocument architecture question
- From: matt neuburg <email@hidden>
- Date: Thu, 25 Sep 2003 08:49:03 -0700
On Wed, 24 Sep 2003 19:49:13 -0400, Tom Gray <email@hidden> said:
>
My NSDocument based application is prompting me when I try and close
>
the application when I have multiple edited documents. The prompt has
>
an option to "Discard Changes". If I select that my application does
>
NOT quit but continues to run. What should I implement to allow my
>
application to quit while "discarding chages"to multiple documents?
What you describe is not how a document-based application normally behaves. For example, in my document-based application, if multiple edited documents are open, and I choose Quit (is this what you mean by "try and close the application???"), and click Discard Changes in the resulting dialog, the app quits. Therefore the problem is presumably due to some other change you've made. Have over overridden NSDocumentController, for example? m.
--------
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.