Re: Modal dialog alternatives?
Re: Modal dialog alternatives?
- Subject: Re: Modal dialog alternatives?
- From: Raffael Cavallaro <email@hidden>
- Date: Fri, 17 Jun 2005 11:29:26 -0400
On Jun 17, 2005, at Fri, Jun 17, 10:28 15 AM, Andy Bettis wrote: The dialog acts as a filter, either accepting or rejecting the requested changes, and thus the data held are always valid. I suppose you could say that while the modal dialog is showing that the document is transiently invalid, however the only way that the user can progress is by providing valid data or cancelling the whole transaction. If the document can be saved, printed, processed or whatever it will be valid.
I don't see why sheets wouldn't work here. Simply drop the editor as a sheet with a "Commit Changes" button. When clicked this button causes the edit sheet to be witdrawn and the validation routine to run.
Do your validation. If the changes fail - they're not valid or incomplete, etc. - then simply drop another sheet notifying the user that the changes were invalid/incomplete whatever with an OK button - possibly a "Cancel Edit" button as well, but not strictly necessary if your edit sheet has a cancel button. Then drop the edit sheet again. Repeat edit sheet/validation/invalid edit sheet until edits are valid.
This way you don't need modal dialogs, and the edit operation prevents any document changes until the edits are validated.
regards,
Ralph |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden