I have (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender in my app delegate and it gets called when the user quits if **no** documents have been edited (I'm using Core Data). If one of my documents **is** edited it doesn't get called. It goes right to - (void)closeAllDocumentsWithDelegate:(id)delegate didCloseAllSelector:(SEL)didCloseAllSelector contextInfo:(void *)contextInfo in my subclassed NSDocumentController.
I set up a breakpoint in my subclassed NSDocumentController at closeAllDocuments and I see this when I quit (assuming there's an edited document): 0 -[SRDocumentController closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo:] 1 -[NSDocumentController(NSInternal)_shouldTerminateWithDelegate:shouldTerminateSelector:] 2 -[NSApplication _shouldTerminate] 3 -[NSApplication terminate:] ........ I want to have an opportunity to send an NSApplicationTerminateReply before closeAllDocumentsWithDelegate is called. If applicationShouldTerminate would get called like it does with no edited documents I would be in great shape. Can anyone help me?_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com