Hi all, I have a number of tabs in a window, each with a corresponding document. When I close a tab I want it to close its document such that it asks to save changes. The -close method of NSDocument "closes the document immediately, without asking users if they want to save the document." Unfortunately I can't figure out how to close a document without bypassing the option to save. Thanks for any help. EDIT: I tried this: Code: [document saveDocument:nil]; [document close]; The save dialog appears for an instant but disappears when close is called. How can I "wait" until the document has saved before closing it?