Re: document loading / startup problems
Re: document loading / startup problems
- Subject: Re: document loading / startup problems
- From: Michael Dagate <email@hidden>
- Date: Tue, 3 Jul 2001 09:43:46 -0500
Don't update the model while initializing the window. Recall from
Vermont Recipies:
a) - windowDidLoad calls -registerNotificationObservers, then calls
-updateWindow
b) - updateWindow calls -updateMyCheckbox:nil
c) - updateMyCheckbox retrieves data from the model and updates the
checkbox control
Use the "update" methods (e.g. "updateMyCheckbox") to update the user
interface, not the model. Use the "action" methods (e.g.
"myCheckboxAction") to update the model in response to user interface
activity.
Michael
On Tuesday, July 3, 2001, at 04:54 AM, Simon Stapleton wrote:
5 - The window comes up. This sends a bunch of messages to update the
values of the model to be the values of the fields in the nib. These
get
passed on to the model, which updates its fields to the _empty_ values
from the nib (and a bunch more notifications get passed on, to be
ignored, as I still haven't registered for them)