danpalmer/DPSetupWindow — pull request #1 by drchiu (2012-12-26 21:02:38+00:00)
Title: Deregisters last view controller from being observed before being sent back to main window

Great little Cocoa class btw.

This fix is for a bug for when an NSPersistentDocument instance is setting up DPSetupWindow, once the DPSetupWindow's sheet ends through the "Continue" (ie. not "Cancel") button, the last view controller isn't deregistered as being observed by the DPSetupWindow instance.

This caused NSPersistentDocument to crash, and not allow the document to be saved, etc.

I'm quite new at this, but this "fix" seemed to allow the NSPersistentDocument to reacquire control and save/quit the application gracefully/etc.

Let me know.

SC