Added Application.cleanup method which asks all windows to close
themselves and returns true if they did.
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py
index 5741972..da07d13 100644
--- a/Mac/Lib/FrameWork.py
+++ b/Mac/Lib/FrameWork.py
@@ -115,6 +115,11 @@
 	def _quit(self, *args):
 		self.quitting = 1
 		
+	def cleanup(self):
+		for w in self._windows.values():
+			w.do_close()
+		return self._windows == {}
+		
 	def appendwindow(self, wid, window):
 		self._windows[wid] = window