[Pharo-project] Discard changes after clicking Ok if a condition is false.
I have an object I want to edit, when I hit ok a question is made,e.g: the data I've entered doesn't already exist? ifFalse an alertDialogWindow pops up and it shouldn't apply changes to the object. But I found that ok method does "applyChanges" when clicked.
I don't understand your question. Can you provide more details? Also, I think you'd be better to ask this on the pharo-users list (rather than the dev list) On 25 January 2013 23:02, J. P. L. MartÃn <arguser@gmail.com> wrote:
I have an object I want to edit, when I hit ok a question is made,e.g: the data I've entered doesn't already exist? ifFalse an alertDialogWindow pops up and it shouldn't apply changes to the object. But I found that ok method does "applyChanges" when clicked.
I'm sorry, you are right. Anyway I've found a workaround and solved my issue. You are also correct at pointing me out to join pharo-users list. Thanks! On Sat, Jan 26, 2013 at 9:06 AM, Peter H. Meadows < peter.h.meadows@googlemail.com> wrote:
I don't understand your question. Can you provide more details?
Also, I think you'd be better to ask this on the pharo-users list (rather than the dev list)
On 25 January 2013 23:02, J. P. L. MartÃn <arguser@gmail.com> wrote:
I have an object I want to edit, when I hit ok a question is made,e.g: the data I've entered doesn't already exist? ifFalse an alertDialogWindow pops up and it shouldn't apply changes to the object. But I found that ok method does "applyChanges" when clicked.
participants (2)
-
J. P. L. MartÃn -
Peter H. Meadows