Btw, #save
answers the changed model and #cancel answers nil.
I saw that onAnswer was called for the cancel action but didn't get
a breakpoint
in the onAnswer block when 'save' was selected.. Do I just assume
that if my
block isn't triggered that 'save' was selected?
I guess this has to do with the other bugs you had in your code ;-)
An #onAnswer: block like this should actually work:
[ :answer |
answer isNil
ifTrue: [ self inform: 'You cancelled editing' ]
ifFalse: [ self inform: 'The object was saved: ' , answer
printString ] ]
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch