[Seaside] Extending WAModelProxy to handle the proxying of methods with 2 or more arguments..

Rick Flower rickf at ca-flower.com
Mon Jul 31 16:49:36 UTC 2006

Martin J. Laubach wrote:
> |  Anyone care to steer me in the right direction such that this method
> |  can handle methods that look something like :
> | 
> |  MyClass>>UpdateMyArrayAt: myIndex with: myValue
>   The short answer: It can't. The proxy is a really simple minded thing
> that just assumes: a selector with one argument is a setter and sets
> an instance variable, and there is a corresponding getter (same selector
> without arg). Thus it intercepts #foo: and #foo and simulates setting
> and getting.

After studying the code further yesterday, I ended up refactoring the 
code a bit to get a collection as a single argument and it in fact 
solved this problem, so I guess I don't really need to solve this 
particular issue as it looked a bit ugly to solve.. (8->


-- Rick

More information about the Seaside mailing list