Save changes prompt in non-document app
Save changes prompt in non-document app
- Subject: Save changes prompt in non-document app
- From: Andy Bettis <email@hidden>
- Date: Thu, 29 Jan 2009 15:20:13 +0000
Hi,
This should be simple enough - I have a non-document application with
a simple one-window interface. I'd like to pop up a 'save changes,
discard, cancel' sheet when Quit is chosen or the window is closed,
the same way that a document based app would. But I can't quite work
out where to put it and how to do it. I guess I should check in
windowShouldClose: and applicationShouldTerminate: but if I have to
put up a sheet and wait for the didEndSelector method to be called how
do I carry on with the quit or close?
Cheers,
Andy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden