On Aug 19, 2008, at 12:31 AM, Lukas Renggli wrote:

Another problem I see is the #submitButton, that is outside the form   
that you added with #addValidatedForm. To get your 'done' button into  
the form you might want to customize the decorator like:

... addValidatedForm: #( save cancel done )

Lukas -- what if I just want the plain version (save,cancel) but still want 
to know which button was pressed.. I really only had the 'done' button
in place since that is what the examples used.  So, if I ditch the 'done'
button, how can I get the ultimate answer that was selected?


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?

Sorry for being dense.. I just want to make sure I've got sufficient info for this
tonight when I want to work on this more.

-- Rick