Hi Blair,
I just noticed a change in BugOff's behavior under D5 vs. D4. Going from
the summary editor (a text presenter) directly to clicking the save button
w/o first changing selection in the list does not flush the changes to the
model. Moving the focus to another text presenter before clicking on the
toolbar does flush the changes. The D4 behavior was correct, but, it might
have been two wrongs making a right.
BugOff uses a selection trick (see below) to force changes to be flushed
back to the model. There is a definite flicker, so my hunch is that the
close/open is occuring. Has something changed about view/presenter closing?
PaneHolders is involved here - do I maybe need to add some extra steps when
closing a pane?
Put another way, did you have any problems with data not getting flushed
back to models? If so, can you remember which presenters or what you did to
fix it?
Have a good one,
Bill
------------------
getDocumentData
"Private - Answer the data for the receiver's document.
Can be overidden by subclasses"
| selectionOrNil |
"Note the file name for MRU list."
self recordRecentFile.
"Force the removal of the current pane to flush changes."
selectionOrNil := items selectionOrNil.
items selectionOrNil:nil.
selectionOrNil notNil ifTrue:[
items selection:selectionOrNil.
].
^self model list asOrderedCollection
--
Wilhelm K. Schwab, Ph.D.
[hidden email]