"John" == John Morrison jm@mak.com writes:
John> Sorry for what might be either a Stupid Newbie Question or John> Pilot Error:
John> I am trying to implement a frame that allows "form-like" John> pop-editing of a CL data structure which include strings. John> How can I initialize the text fields and text editors?
John> If I do what seems like the recommended thing according to John> the Harlequin CLIM manual -- a :before method on John> run-frame-top-level, it seems like maybe some goatee buffer John> pointer is not initialized until after the primary John> run-frame-top-level method gets called.
John> (I made my own :around run-frame-top-level method, and the John> setf gadget-value, in fact, succeeds after the John> (call-next-method) has run John> -- but of course that's a little late for me.)
John> The attached lisp program seems to exhibit the symptoms: the John> "test1" command works as expected and sets the value, but John> the :before method does not seem to.
John> I only tried this under Linux (CentOS 4.4) on a relatively John> recent SBCL (0.9.14 RPM), using a relatively recent McCLIM John> (CVS updated approx Sept 15th). If anybody would please John> suggest further experiments, I would carry them out John> post-haste.
John> Sorry if this is a stupid mechanical question: also, is John> there a stylistically better way to do this?
Argh. I wish I could answer you precisely. I remember only vaguely reading something in the CLIM spec that said "this is the method to specialize if you want to set up your frame (or something like that)."
IIRC, it's ADOPT-FRAME to which you want to add this behavior.
Good luck!
r