[Seaside] [Q] callbacks in forms... or data passing

Julian Fitzell julian at beta4.com
Thu Jun 12 14:57:57 CEST 2003


Brian Brown wrote:
> Since in textInputWithValue:callback:, the callback: is a block, does this 
> mean that every input on a form could potentially send a different message to 
> different receivers?

Yes, every text input can do whatever it wants with its new value.

> When updating data in an instance or collecting form information to create an 
> instance of a class, would you just use the callbacks to set instance 
> variables like in WSMPasswordEditor, or is there some other idiom that should 
> be used?

If all you want to do is hook up a text field to a instance variable of 
an object you can use #textInputOn:of:

Julian



More information about the Seaside mailing list