#deepCopy not necessary here - a copy sufices.
My problme was that I incorrectly used ifFalse instead of iTrue.
<code that works>
editContact: aContact
| copy |
copy := aContact copy.
(editor contact: copy) onAnswer: [ :answer |
"copy has been updated - keep update if Save"
answer ifTrue: [MyContact removeContact: aContact; addContact:
copy.
]
]
</code that works>
According to Ladislav:
>
> You want to swap the contacts only when the user clicked on a Save
button.
> Otherwise there's nothing that needs to be done. However be aware that
> I am not a Seaside user.
>
>
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc