On 11/02/2009, at 10:46 AM, Graham Cox wrote:

OK, that's fine for the termination part - thanks!

The problem with the code you outline though is that the call to - runModal runs the event loop which allows the untitled document to continue to open behind the alert. I'd like to discover a way to avoid that if possible.


Ah, I forgot the important part. I set a flag before displaying the dialog and test it in -applicationShouldOpenUntitledFile:. If the flag is set, return NO from that method.

--
Rob Keniger



_______________________________________________

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

Reply via email to