Re: Event handling question
Re: Event handling question
- Subject: Re: Event handling question
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 7 Apr 2003 21:10:41 -0700
On Friday, April 4, 2003, at 05:14 PM, Art Isbell wrote:
I'd hate to write anything that might appear to detract from Art's
excellent post, so please consider this as intended to augment.
This graphically demonstrates why methods bound to dynamic elements
should not implement a lot of processing; these methods are invoked
repeatedly during the request-response cycle.
This is certainly true in the default case, however WebObjects does
also offer the option of switching off variable synchronisation -- in
your component, implement synchronizesVariablesWithBindings() to return
yes. If you "switch off" variable synchronisation, then the
inter-component communication overhead may be significantly reduced.
I might also make a bigger-picture perspective of Art's post.
The request-response cycle often appears to some to be one of the more
tedious aspects of the WebObjects architecture. Apple's WebObjects I
training course(*) spend much of the first day dealing with the topic,
and I often find myself having to reassure students that the time spent
is a worthwhile investment. It is certainly possible to do a lot of WO
development without a solid grasp of what happens in what order, but
then odd bugs and "inexplicable" behaviours may result -- you may also
overlook some opportunities for optimisation. I'd encourage all
newcomers to read and understand Art's post...
mmalc
(*)
http://train.apple.com/cgi-bin/WebObjects/Registration.woa/wa/
displayClasses
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.