[Openmcl-devel] A question on how to implement delegate methods

Didier Verna didier at lrde.epita.fr
Fri Feb 1 12:31:35 PST 2008


I wrote:

> From what I understand (correct me if I'm wrong), I would need a method
> of the form:
>
> #/outlineView: (<delegate> <the-outline-view> &key should-select-item)

  You're wrong :-) I snarfed into the code and eventually figured out
the correct way to implement that:

(objc:defmethod (#/outlineView:shouldSelectItem: :<BOOL>)
    ((self main-window-controller) outline-view item)
  ;; ...
)

-- 
Resistance is futile. You will be jazzimilated.

Didier Verna, didier at lrde.epita.fr, http://www.lrde.epita.fr/~didier

EPITA / LRDE, 14-16 rue Voltaire   Tel.+33 (0)1 44 08 01 85
94276 Le Kremlin-Bicêtre, France   Fax.+33 (0)1 53 14 59 22  didier at xemacs.org



More information about the Openmcl-devel mailing list